WIP Themes: font size standartization

This commit is contained in:
Yegor Vialov
2020-04-04 12:47:40 +00:00
parent b8ba3c59e9
commit 4432124e8c
16 changed files with 47 additions and 118 deletions

View File

@ -539,9 +539,8 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver, Ticker
}
void _showErrorBottomBar(HAError error) {
TextStyle textStyle = TextStyle(
color: Colors.blue,
fontSize: Sizes.nameFontSize
TextStyle textStyle = Theme.of(context).textTheme.subhead.copyWith(
color: Colors.blue
);
_bottomBarColor = Colors.red.shade100;
List<Widget> actions = [];

View File

@ -10,8 +10,7 @@ class LastUpdatedWidget extends StatelessWidget {
child: Text(
'${entityModel.entityWrapper.entity.lastUpdated}',
textAlign: TextAlign.left,
style: TextStyle(
fontSize: Sizes.smallFontSize, color: Colors.black26),
style: Theme.of(context).textTheme.caption
),
);
}