userRegisterSuccess.dart 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import 'package:flutter/material.dart';
  2. import 'userLogin.dart';
  3. class userRegisterSuccess extends StatelessWidget {
  4. const userRegisterSuccess({Key? key}) : super(key: key);
  5. @override
  6. Widget build(BuildContext context) {
  7. return Scaffold(
  8. backgroundColor: Colors.white,
  9. body: Padding(
  10. padding: const EdgeInsets.all(16.0),
  11. child: Column(
  12. mainAxisAlignment: MainAxisAlignment.center,
  13. crossAxisAlignment: CrossAxisAlignment.center,
  14. children: [
  15. Image.asset(
  16. 'assets/images/successImage.png',
  17. height: 140,
  18. width: 140,
  19. ),
  20. const Text(
  21. 'Your account is successfully registered',
  22. style: TextStyle(
  23. fontFamily: 'Poppins',
  24. fontSize: 17,
  25. fontWeight: FontWeight.bold,
  26. color: Colors.green, // Adjust color as needed
  27. ),
  28. ),
  29. const SizedBox(height: 70),
  30. Align(
  31. alignment: Alignment.center,
  32. child:
  33. Container(
  34. width: 334,
  35. height: 65,
  36. decoration: BoxDecoration(
  37. borderRadius: BorderRadius.circular(10),
  38. color: const Color.fromRGBO(119, 97, 255, 1.0),
  39. ),
  40. child: TextButton(
  41. onPressed: () {
  42. // Handle Next button press
  43. Navigator.push(
  44. context,
  45. MaterialPageRoute(builder: (context) => userLogin()),
  46. );
  47. },
  48. child: const Text(
  49. 'Back to user login',
  50. style: TextStyle(
  51. fontFamily: 'Poppins',
  52. fontSize: 17,
  53. fontWeight: FontWeight.bold,
  54. color: Colors.white,
  55. ),
  56. ),
  57. ),
  58. ),
  59. ),
  60. const SizedBox(height: 10),
  61. ],
  62. ),
  63. ),
  64. );
  65. }
  66. }