From 96c46352545b257bbea1d058999c65ac9d107b93 Mon Sep 17 00:00:00 2001 From: Nopylacetat Date: Fri, 20 Oct 2023 19:25:44 +0200 Subject: [PATCH] Style --- lib/main.dart | 3 ++- lib/pages/login_page.dart | 17 +++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 458b2b6..644afd4 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -16,7 +16,8 @@ class Application extends StatelessWidget { return MaterialApp( title: 'Maggs\' Victory Voyage', theme: ThemeData( - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple) + .copyWith(background: Colors.pink[50]), useMaterial3: true, ), home: const SplashPage(), diff --git a/lib/pages/login_page.dart b/lib/pages/login_page.dart index 66fb624..5bf8e09 100644 --- a/lib/pages/login_page.dart +++ b/lib/pages/login_page.dart @@ -15,23 +15,24 @@ class LoginPage extends StatelessWidget { width: width / 2, child: Column( children: [ - const Text('Please enter your first name', + const Text('Welcome!', style: TextStyle( - color: Colors.pink, + fontSize: 35, + fontWeight: FontWeight.bold, + color: Colors.white, )), + const Padding(padding: EdgeInsets.symmetric(vertical: 20)), TextField( controller: username, decoration: const InputDecoration( - label: Text('Username!'), + label: Text('Username'), + border: OutlineInputBorder(), ), ), - TextButton( + const Padding(padding: EdgeInsets.symmetric(vertical: 20)), + ElevatedButton( onPressed: () => DbHelper.login(username.text), child: const Text('Login'), - ), - TextButton( - onPressed: () => DbHelper.logout(), - child: const Text('Logout'), ) ], ),