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.
This commit is contained in:
Vishesh Handa
2019-01-11 18:23:07 +01:00
parent f63439f6cc
commit fe4f6effe7
2 changed files with 22 additions and 8 deletions

View File

@ -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: <NavigatorObserver>[observer],

View File

@ -124,15 +124,27 @@ class OnBoardingGitUrlState extends State<OnBoardingGitUrl> {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
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,
),
)
],
);