chore: Make app ready for flutter 1 22
This commit is contained in:
parent
81658f3489
commit
3910dac42c
12 changed files with 647 additions and 34 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue