chore: Make app ready for flutter 1 22

This commit is contained in:
Christian Pauly 2020-10-02 08:56:28 +02:00
commit 3910dac42c
12 changed files with 647 additions and 34 deletions

View file

@ -71,7 +71,9 @@ class ParticipantListItem extends StatelessWidget {
};
final permissionBatch = user.powerLevel == 100
? L10n.of(context).admin
: user.powerLevel >= 50 ? L10n.of(context).moderator : '';
: user.powerLevel >= 50
? L10n.of(context).moderator
: '';
var items = <PopupMenuEntry<String>>[];
if (user.id != Matrix.of(context).client.userID) {

View file

@ -114,7 +114,9 @@ final ThemeData amoledTheme = ThemeData.dark().copyWith(
Color chatListItemColor(BuildContext context, bool activeChat) =>
Theme.of(context).brightness == Brightness.light
? activeChat ? Color(0xFFE8E8E8) : Colors.white
? activeChat
? Color(0xFFE8E8E8)
: Colors.white
: activeChat
? ThemeSwitcherWidget.of(context).amoledEnabled
? Color(0xff121212)