From fe4f6effe74d31f159d7211a97219e19d26e5565 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 11 Jan 2019 18:23:07 +0100 Subject: [PATCH] Main OnBoading Screen: Add some padding + some color to the input box I would have assumed that the background color would have come by default. --- lib/app.dart | 2 ++ lib/screens/onboarding_screens.dart | 28 ++++++++++++++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index 73cb5c7f..d2c09cc7 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -26,6 +26,8 @@ class JournalApp extends StatelessWidget { theme: new ThemeData( brightness: Brightness.light, primaryColor: Color(0xFF66bb6a), + primaryColorLight: Color(0xFF98ee99), + primaryColorDark: Color(0xFF338a3e), accentColor: Color(0xff6d4c41), ), navigatorObservers: [observer], diff --git a/lib/screens/onboarding_screens.dart b/lib/screens/onboarding_screens.dart index 3358113a..4f195ee4 100644 --- a/lib/screens/onboarding_screens.dart +++ b/lib/screens/onboarding_screens.dart @@ -124,15 +124,27 @@ class OnBoardingGitUrlState extends State { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ - Text( - 'Enter the Git SSH URL', - textAlign: TextAlign.center, - style: Theme.of(context).textTheme.display1, + Padding( + padding: const EdgeInsets.all(8.0), + child: Text( + 'Enter the Git SSH URL', + textAlign: TextAlign.center, + style: Theme.of(context).textTheme.display1, + ), ), - inputForm, - RaisedButton( - child: Text("Next"), - onPressed: formSubmitted, + Padding( + padding: const EdgeInsets.all(8.0), + child: new Container( + color: Theme.of(context).primaryColorLight, + child: inputForm, + ), + ), + Padding( + padding: const EdgeInsets.all(8.0), + child: RaisedButton( + child: Text("Next"), + onPressed: formSubmitted, + ), ) ], );