mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-17 23:41:37 +02:00
use theme for everything for easy porting
This commit is contained in:
@@ -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,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user