mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-03 14:06:51 +08:00
OnBoarding Git Url: Make it prettier
And more consistent with the rest of the on-boarding
This commit is contained in:
@ -16,11 +16,11 @@ class OnBoardingGitUrlState extends State<OnBoardingGitUrl> {
|
|||||||
final GlobalKey<FormFieldState<String>> sshUrlKey =
|
final GlobalKey<FormFieldState<String>> sshUrlKey =
|
||||||
GlobalKey<FormFieldState<String>>();
|
GlobalKey<FormFieldState<String>>();
|
||||||
|
|
||||||
@override
|
|
||||||
Widget build(BuildContext context) {
|
|
||||||
final _formKey = GlobalKey<FormState>();
|
final _formKey = GlobalKey<FormState>();
|
||||||
final inputFormFocus = FocusNode();
|
final inputFormFocus = FocusNode();
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
final formSubmitted = () {
|
final formSubmitted = () {
|
||||||
if (_formKey.currentState.validate()) {
|
if (_formKey.currentState.validate()) {
|
||||||
_formKey.currentState.save();
|
_formKey.currentState.save();
|
||||||
@ -62,27 +62,30 @@ class OnBoardingGitUrlState extends State<OnBoardingGitUrl> {
|
|||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Enter the Git SSH URL',
|
"Enter the Git SSH URL:",
|
||||||
textAlign: TextAlign.center,
|
style: Theme.of(context).textTheme.headline,
|
||||||
style: Theme.of(context).textTheme.display1,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
SizedBox(height: 16.0),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: new Container(
|
|
||||||
color: Theme.of(context).primaryColorLight,
|
|
||||||
child: inputForm,
|
child: inputForm,
|
||||||
),
|
),
|
||||||
),
|
SizedBox(height: 8.0),
|
||||||
Padding(
|
SizedBox(
|
||||||
padding: const EdgeInsets.all(8.0),
|
width: double.infinity,
|
||||||
child: RaisedButton(
|
child: RaisedButton(
|
||||||
child: Text("Next"),
|
child: Text(
|
||||||
|
"Next",
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: Theme.of(context).textTheme.button,
|
||||||
|
),
|
||||||
|
color: Theme.of(context).primaryColor,
|
||||||
onPressed: formSubmitted,
|
onPressed: formSubmitted,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user