Fix analyzer

This commit is contained in:
Christian Pauly 2020-02-16 20:28:07 +01:00
parent c7eec637c0
commit 429e4a1be7
2 changed files with 3 additions and 10 deletions

View File

@ -203,11 +203,8 @@ class _ChatDetailsState extends State<ChatDetails> {
], ],
title: Text(widget.room.getLocalizedDisplayname(context), title: Text(widget.room.getLocalizedDisplayname(context),
style: TextStyle( style: TextStyle(
color: Theme.of(context) color:
.appBarTheme Theme.of(context).appBarTheme.textTheme.title.color)),
.textTheme
.headline6
.color)),
backgroundColor: Theme.of(context).appBarTheme.color, backgroundColor: Theme.of(context).appBarTheme.color,
flexibleSpace: FlexibleSpaceBar( flexibleSpace: FlexibleSpaceBar(
background: ContentBanner(widget.room.avatar, background: ContentBanner(widget.room.avatar,

View File

@ -117,11 +117,7 @@ class _SettingsState extends State<Settings> {
title: Text( title: Text(
I18n.of(context).settings, I18n.of(context).settings,
style: TextStyle( style: TextStyle(
color: Theme.of(context) color: Theme.of(context).appBarTheme.textTheme.title.color),
.appBarTheme
.textTheme
.headline6
.color),
), ),
background: ContentBanner( background: ContentBanner(
profile?.avatarUrl ?? MxContent(""), profile?.avatarUrl ?? MxContent(""),