mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-08-02 20:17:54 +08:00
OnBoardingScreen: Add more padding
This commit is contained in:
@ -218,20 +218,29 @@ class OnBoardingSshKey extends StatelessWidget {
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Text(
|
Padding(
|
||||||
'Deploy Public Key',
|
padding: const EdgeInsets.all(8.0),
|
||||||
textAlign: TextAlign.center,
|
child: Text(
|
||||||
style: Theme.of(context).textTheme.display1,
|
'Deploy Public Key',
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: Theme.of(context).textTheme.display1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Padding(
|
||||||
publicKey,
|
padding: const EdgeInsets.all(8.0),
|
||||||
textAlign: TextAlign.left,
|
child: Text(
|
||||||
maxLines: 20,
|
publicKey,
|
||||||
style: Theme.of(context).textTheme.body1,
|
textAlign: TextAlign.left,
|
||||||
|
maxLines: 20,
|
||||||
|
style: Theme.of(context).textTheme.body1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
RaisedButton(
|
Padding(
|
||||||
child: Text("Start Clone"),
|
padding: const EdgeInsets.all(8.0),
|
||||||
onPressed: this.doneFunction,
|
child: RaisedButton(
|
||||||
|
child: Text("Start Clone"),
|
||||||
|
onPressed: this.doneFunction,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
@ -277,26 +286,38 @@ class OnBoardingGitCloneState extends State<OnBoardingGitClone> {
|
|||||||
var children = <Widget>[];
|
var children = <Widget>[];
|
||||||
if (this.errorMessage.isEmpty) {
|
if (this.errorMessage.isEmpty) {
|
||||||
children = <Widget>[
|
children = <Widget>[
|
||||||
Text(
|
Padding(
|
||||||
'Cloning ...',
|
padding: const EdgeInsets.all(8.0),
|
||||||
textAlign: TextAlign.center,
|
child: Text(
|
||||||
style: Theme.of(context).textTheme.display1,
|
'Cloning ...',
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: Theme.of(context).textTheme.display1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
CircularProgressIndicator(
|
Padding(
|
||||||
value: null,
|
padding: const EdgeInsets.all(8.0),
|
||||||
|
child: CircularProgressIndicator(
|
||||||
|
value: null,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
} else if (this.errorMessage.isNotEmpty) {
|
} else if (this.errorMessage.isNotEmpty) {
|
||||||
children = <Widget>[
|
children = <Widget>[
|
||||||
Text(
|
Padding(
|
||||||
'Failed',
|
padding: const EdgeInsets.all(8.0),
|
||||||
textAlign: TextAlign.center,
|
child: Text(
|
||||||
style: Theme.of(context).textTheme.display1,
|
'Failed',
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: Theme.of(context).textTheme.display1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Padding(
|
||||||
this.errorMessage,
|
padding: const EdgeInsets.all(8.0),
|
||||||
textAlign: TextAlign.center,
|
child: Text(
|
||||||
style: Theme.of(context).textTheme.display1,
|
this.errorMessage,
|
||||||
|
textAlign: TextAlign.center,
|
||||||
|
style: Theme.of(context).textTheme.display1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user