use theme for everything for easy porting

pull/2/head
fuwa 5 years ago
parent 0343c6c04b
commit 5946ae5e2c

@ -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

@ -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,
)
)
)

@ -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,
)
)
)

@ -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,
)
)
)

@ -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,
)
)
)