import 'package:flutter/material.dart'; import 'driverLogin.dart'; class driverRegisterSuccess extends StatelessWidget { @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, ), Text( 'Your account is successfully registered', style: TextStyle( fontFamily: 'Poppins', fontSize: 17, fontWeight: FontWeight.bold, color: Colors.green, // Adjust color as needed ), ), SizedBox(height: 70), Align( alignment: Alignment.center, child: Container( width: 334, height: 65, decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), color: Color.fromRGBO(119, 97, 255, 1.0), ), child: TextButton( onPressed: () { // Handle Next button press Navigator.push( context, MaterialPageRoute(builder: (context) => driverLogin()), ); }, child: Text( 'Back to driver login', style: TextStyle( fontFamily: 'Poppins', fontSize: 17, fontWeight: FontWeight.bold, color: Colors.white, ), ), ), ), ), SizedBox(height: 10), ], ), ), ); } }