OnBoarding: Use the textStyle from the theme

This looks considerably worse, but I think overall, it would be better
for me to start with trying to just follow the Material Design
guidelines and then adapt the main these as necessary.
This commit is contained in:
Vishesh Handa
2019-01-10 17:15:09 +01:00
parent 88a0c73fe3
commit 0b99f7f680

View File

@ -76,7 +76,7 @@ class OnBoardingGitUrlState extends State<OnBoardingGitUrl> {
'Enter the Git SSH URL -',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 38),
style: Theme.of(context).textTheme.display1,
),
Form(
child: TextFormField(
@ -136,13 +136,13 @@ class OnBoardingSshKeyState extends State<OnBoardingSshKey> {
Text(
'Deploy Public Key',
textAlign: TextAlign.center,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 38),
style: Theme.of(context).textTheme.display1,
),
Text(
publicKey,
textAlign: TextAlign.center,
maxLines: 10,
style: TextStyle(fontSize: 10),
textAlign: TextAlign.left,
maxLines: 20,
style: Theme.of(context).textTheme.body1,
),
RaisedButton(
child: Text("Start Clone"),
@ -198,7 +198,7 @@ class OnBoardingGitCloneState extends State<OnBoardingGitClone> {
Text(
'Cloning ...',
textAlign: TextAlign.center,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 38),
style: Theme.of(context).textTheme.display1,
),
CircularProgressIndicator(
value: null,
@ -209,12 +209,12 @@ class OnBoardingGitCloneState extends State<OnBoardingGitClone> {
Text(
'Failed',
textAlign: TextAlign.center,
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 38),
style: Theme.of(context).textTheme.display1,
),
Text(
this.errorMessage,
textAlign: TextAlign.center,
style: TextStyle(fontSize: 18),
style: Theme.of(context).textTheme.display1,
),
];
}