refactor: Update dependencies
This commit is contained in:
parent
5ad32f2915
commit
c2495eb1a7
5 changed files with 236 additions and 228 deletions
|
|
@ -33,7 +33,6 @@ class UnreadRoomsBadge extends StatelessWidget {
|
|||
.where((r) => (r.isUnread || r.membership == Membership.invite))
|
||||
.length;
|
||||
return b.Badge(
|
||||
alignment: Alignment.bottomRight,
|
||||
badgeContent: Text(
|
||||
unreadCount.toString(),
|
||||
style: TextStyle(
|
||||
|
|
@ -42,13 +41,14 @@ class UnreadRoomsBadge extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
showBadge: unreadCount != 0,
|
||||
animationType: b.BadgeAnimationType.scale,
|
||||
badgeColor: Theme.of(context).colorScheme.primary,
|
||||
position: badgePosition,
|
||||
elevation: 4,
|
||||
borderSide: BorderSide(
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
width: 2,
|
||||
badgeStyle: b.BadgeStyle(
|
||||
badgeColor: Theme.of(context).colorScheme.primary,
|
||||
elevation: 4,
|
||||
borderSide: BorderSide(
|
||||
color: Theme.of(context).colorScheme.background,
|
||||
width: 2,
|
||||
),
|
||||
),
|
||||
child: child,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue