driverResisterSuccess.dart 2.0 KB

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