import 'package:flutter/material.dart'; import 'signup_screen.dart'; import 'login_screen.dart'; class WelcomeScreen extends StatelessWidget { const WelcomeScreen({super.key}); @override Widget build(BuildContext context) { final w = MediaQuery.of(context).size.width; return Scaffold( body: SafeArea( child: Padding( padding: EdgeInsets.symmetric(horizontal: w * 0.06), child: Column( children: [ const SizedBox(height: 28), Align(alignment: Alignment.centerLeft, child: Text("Welcome", style: Theme.of(context).textTheme.headlineSmall)), const SizedBox(height: 12), const Text( "Register to access Kent Logistics services. After signup admin will review and approve your request. Approval may take up to 24 hours.", style: TextStyle(fontSize: 15), ), const Spacer(), ElevatedButton( onPressed: () => Navigator.of(context).push(MaterialPageRoute(builder: (_) => const SignupScreen())), child: const SizedBox(width: double.infinity, child: Center(child: Padding(padding: EdgeInsets.all(14.0), child: Text("Create Account")))), style: ElevatedButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))), ), const SizedBox(height: 12), OutlinedButton( onPressed: () => Navigator.of(context).push(MaterialPageRoute(builder: (_) => const LoginScreen())), child: const SizedBox(width: double.infinity, child: Center(child: Padding(padding: EdgeInsets.all(14.0), child: Text("Login")))), style: OutlinedButton.styleFrom(shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12))), ), const SizedBox(height: 24), ], ), ), ), ); } }