refactor: Upgrade to Flutter 2.5
This commit is contained in:
parent
21d7f862dd
commit
eba304556c
7 changed files with 39 additions and 49 deletions
|
|
@ -107,13 +107,11 @@ abstract class FluffyThemes {
|
|||
),
|
||||
appBarTheme: AppBarTheme(
|
||||
elevation: 2,
|
||||
brightness: Brightness.light,
|
||||
systemOverlayStyle: SystemUiOverlayStyle.dark,
|
||||
color: Colors.white,
|
||||
textTheme: TextTheme(
|
||||
headline6: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 20,
|
||||
),
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 20,
|
||||
),
|
||||
iconTheme: IconThemeData(color: Colors.black),
|
||||
),
|
||||
|
|
@ -197,13 +195,11 @@ abstract class FluffyThemes {
|
|||
snackBarTheme: SnackBarThemeData(behavior: SnackBarBehavior.floating),
|
||||
appBarTheme: AppBarTheme(
|
||||
elevation: 2,
|
||||
brightness: Brightness.dark,
|
||||
systemOverlayStyle: SystemUiOverlayStyle.light,
|
||||
color: Color(0xff1D1D1D),
|
||||
textTheme: TextTheme(
|
||||
headline6: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 20,
|
||||
),
|
||||
titleTextStyle: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 20,
|
||||
),
|
||||
iconTheme: IconThemeData(color: Colors.white),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -79,10 +79,10 @@ class ChatDetailsView extends StatelessWidget {
|
|||
style: TextStyle(
|
||||
color: Theme.of(context)
|
||||
.appBarTheme
|
||||
.textTheme
|
||||
.headline6
|
||||
.titleTextStyle
|
||||
.color)),
|
||||
backgroundColor: Theme.of(context).appBarTheme.color,
|
||||
backgroundColor:
|
||||
Theme.of(context).appBarTheme.backgroundColor,
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
background: ContentBanner(room.avatar,
|
||||
onEdit: room.canSendEvent('m.room.avatar')
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class SettingsView extends StatelessWidget {
|
|||
floating: true,
|
||||
pinned: true,
|
||||
title: Text(L10n.of(context).settings),
|
||||
backgroundColor: Theme.of(context).appBarTheme.color,
|
||||
backgroundColor: Theme.of(context).appBarTheme.backgroundColor,
|
||||
flexibleSpace: FlexibleSpaceBar(
|
||||
background: ContentBanner(
|
||||
controller.profile?.avatarUrl,
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ class ChatListItem extends StatelessWidget {
|
|||
room.lastEvent?.senderId == Matrix.of(context).client.userID;
|
||||
final unread = room.isUnread || room.membership == Membership.invite;
|
||||
final unreadBubbleSize = unread
|
||||
? room.notificationCount > 0.0
|
||||
? room.notificationCount > 0
|
||||
? 20.0
|
||||
: 14.0
|
||||
: 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue