import 'package:flutter/material.dart'; import 'userLogin.dart'; class userRegisterSuccess extends StatelessWidget { const userRegisterSuccess({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, body: Padding( padding: const EdgeInsets.all(16.0), child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ Image.asset( 'assets/images/successImage.png', height: 140, width: 140, ), const Text( 'Your account is successfully registered', style: TextStyle( fontFamily: 'Poppins', fontSize: 17, fontWeight: FontWeight.bold, color: Colors.green, // Adjust color as needed ), ), const SizedBox(height: 70), Align( alignment: Alignment.center, child: Container( width: 334, height: 65, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: const Color.fromRGBO(119, 97, 255, 1.0), ), child: TextButton( onPressed: () { // Handle Next button press Navigator.push( context, MaterialPageRoute(builder: (context) => userLogin()), ); }, child: const Text( 'Back to user login', style: TextStyle( fontFamily: 'Poppins', fontSize: 17, fontWeight: FontWeight.bold, color: Colors.white, ), ), ), ), ), const SizedBox(height: 10), ], ), ), ); } }