Fix deprecations

This commit is contained in:
Christian Pauly 2020-05-06 18:43:30 +02:00
commit 02ebf0ff43
9 changed files with 21 additions and 13 deletions

View file

@ -186,8 +186,11 @@ class _ChatDetailsState extends State<ChatDetails> {
],
title: Text(widget.room.getLocalizedDisplayname(I18n.of(context)),
style: TextStyle(
color:
Theme.of(context).appBarTheme.textTheme.title.color)),
color: Theme.of(context)
.appBarTheme
.textTheme
.headline6
.color)),
backgroundColor: Theme.of(context).appBarTheme.color,
flexibleSpace: FlexibleSpaceBar(
background: ContentBanner(widget.room.avatar,
@ -223,7 +226,7 @@ class _ChatDetailsState extends State<ChatDetails> {
linkStyle: TextStyle(color: Colors.blueAccent),
textStyle: TextStyle(
fontSize: 14,
color: Theme.of(context).textTheme.body1.color,
color: Theme.of(context).textTheme.bodyText2.color,
),
),
onTap: widget.room.canSendEvent("m.room.topic")