From 86d2cbc572e88fcf1a46a6d345beb99e74277a28 Mon Sep 17 00:00:00 2001 From: Reimar Date: Thu, 29 Aug 2024 08:18:52 +0200 Subject: [PATCH] Add padding to login/register page --- Mobile/lib/login.dart | 3 ++- Mobile/lib/register.dart | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Mobile/lib/login.dart b/Mobile/lib/login.dart index 799e94a..8c36021 100644 --- a/Mobile/lib/login.dart +++ b/Mobile/lib/login.dart @@ -56,7 +56,8 @@ class _LoginPageState extends State { body: SingleChildScrollView( child: Center( child: Container( - constraints: const BoxConstraints(minWidth: 100, maxWidth: 400), + padding: const EdgeInsets.all(40), + constraints: const BoxConstraints(maxWidth: 400), child: Column(children: [ const Image(image: AssetImage('assets/logo.png'), height: 200), Text( diff --git a/Mobile/lib/register.dart b/Mobile/lib/register.dart index 91d81ec..b5d9503 100644 --- a/Mobile/lib/register.dart +++ b/Mobile/lib/register.dart @@ -53,7 +53,8 @@ Widget build(BuildContext context) { body: SingleChildScrollView( child: Center( child: Container( - constraints: const BoxConstraints(minWidth: 100, maxWidth: 400), + padding: const EdgeInsets.all(40), + constraints: const BoxConstraints(maxWidth: 400), child: Column( children: [ const Image( @@ -64,7 +65,7 @@ Widget build(BuildContext context) { 'SkanTravels', style: GoogleFonts.jacquesFrancois( fontSize: 30, - color: Color(0xFF1862E7), + color: const Color(0xFF1862E7), ), ), const SizedBox(height: 40),