use theme for everything for easy porting

This commit is contained in:
fuwa
2019-09-25 12:13:07 +00:00
parent 0343c6c04b
commit 5946ae5e2c
5 changed files with 9 additions and 18 deletions
+5 -2
View File
@@ -35,31 +35,34 @@ final _theme = ThemeData
scaffoldBackgroundColor: Colors.black,
fontFamily: 'RobotoMono',
textTheme: TextTheme
(
display1: TextStyle
(
fontFamily: 'RobotoMono',
fontSize: 35,
fontWeight: FontWeight.bold,
),
title: TextStyle
(
fontFamily: 'VT323',
fontSize: 22,
),
subhead: TextStyle
(
fontFamily: 'RobotoMono',
fontSize: 17,
fontWeight: FontWeight.bold,
),
body1: TextStyle
(
fontFamily: 'VT323',
fontSize: 16,
height: 1,
),
body2: TextStyle
(
fontFamily: 'RobotoMono',
fontSize: 11,
),
).apply
+1 -4
View File
@@ -53,10 +53,7 @@ Widget buildExiting(BuildContext context, ExitingState state) {
child: Text
(
state.stdout.join(),
style: Theme.of(context).textTheme.body1.apply
(
fontFamily: 'VT323',
),
style: Theme.of(context).textTheme.body1,
)
)
)
+1 -4
View File
@@ -49,10 +49,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
child: Text
(
state.status,
style: Theme.of(context).textTheme.title.apply
(
fontFamily: 'VT323',
),
style: Theme.of(context).textTheme.title,
)
)
)
+1 -4
View File
@@ -53,10 +53,7 @@ Widget buildReSyncing(BuildContext context, ReSyncingState state) {
child: Text
(
state.stdout.join(),
style: Theme.of(context).textTheme.body1.apply
(
fontFamily: 'VT323',
),
style: Theme.of(context).textTheme.body1,
)
)
)
+1 -4
View File
@@ -53,10 +53,7 @@ Widget buildSyncing(BuildContext context, SyncingState state) {
child: Text
(
state.stdout.join(),
style: Theme.of(context).textTheme.body1.apply
(
fontFamily: 'VT323',
),
style: Theme.of(context).textTheme.body1,
)
)
)