mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-04 09:14:10 +01:00
fix: Messagebubble
This commit is contained in:
parent
5a5b2e95e0
commit
6bbd6eb0c0
@ -1,4 +1,5 @@
|
|||||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||||
|
import 'package:fluffychat/config/app_config.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:fluffychat/config/themes.dart';
|
import 'package:fluffychat/config/themes.dart';
|
||||||
@ -285,12 +286,12 @@ class ChatListItem extends StatelessWidget {
|
|||||||
curve: Curves.bounceInOut,
|
curve: Curves.bounceInOut,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 7),
|
padding: EdgeInsets.symmetric(horizontal: 7),
|
||||||
height: unreadBubbleSize,
|
height: unreadBubbleSize,
|
||||||
width: unreadBubbleSize,
|
width: room.notificationCount == 0 && room.isUnread ? 0 : null,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: room.highlightCount > 0 || room.markedUnread
|
color: room.highlightCount > 0 || room.markedUnread
|
||||||
? Colors.red
|
? Colors.red
|
||||||
: Theme.of(context).primaryColor,
|
: Theme.of(context).primaryColor,
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: room.notificationCount > 0
|
child: room.notificationCount > 0
|
||||||
@ -298,6 +299,7 @@ class ChatListItem extends StatelessWidget {
|
|||||||
room.notificationCount.toString(),
|
room.notificationCount.toString(),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
|
fontSize: 13,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Container(),
|
: Container(),
|
||||||
|
Loading…
Reference in New Issue
Block a user