Add padding to login/register page

This commit is contained in:
Reimar 2024-08-29 08:18:52 +02:00
parent a798d76cfe
commit 86d2cbc572
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268
2 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,8 @@ class _LoginPageState extends State<LoginPage> {
body: SingleChildScrollView( body: SingleChildScrollView(
child: Center( child: Center(
child: Container( child: Container(
constraints: const BoxConstraints(minWidth: 100, maxWidth: 400), padding: const EdgeInsets.all(40),
constraints: const BoxConstraints(maxWidth: 400),
child: Column(children: [ child: Column(children: [
const Image(image: AssetImage('assets/logo.png'), height: 200), const Image(image: AssetImage('assets/logo.png'), height: 200),
Text( Text(

View File

@ -53,7 +53,8 @@ Widget build(BuildContext context) {
body: SingleChildScrollView( body: SingleChildScrollView(
child: Center( child: Center(
child: Container( child: Container(
constraints: const BoxConstraints(minWidth: 100, maxWidth: 400), padding: const EdgeInsets.all(40),
constraints: const BoxConstraints(maxWidth: 400),
child: Column( child: Column(
children: [ children: [
const Image( const Image(
@ -64,7 +65,7 @@ Widget build(BuildContext context) {
'SkanTravels', 'SkanTravels',
style: GoogleFonts.jacquesFrancois( style: GoogleFonts.jacquesFrancois(
fontSize: 30, fontSize: 30,
color: Color(0xFF1862E7), color: const Color(0xFF1862E7),
), ),
), ),
const SizedBox(height: 40), const SizedBox(height: 40),