Revert "refactor: Update dependencies"

This reverts commit 2bb0dce7a15d4831eb30c39fc7ba5d863cbcd55e
This commit is contained in:
Krille 2023-05-23 13:02:15 +00:00
commit 5627e50c8f
5 changed files with 228 additions and 236 deletions

View file

@ -33,6 +33,7 @@ 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(
@ -41,14 +42,13 @@ class UnreadRoomsBadge extends StatelessWidget {
),
),
showBadge: unreadCount != 0,
animationType: b.BadgeAnimationType.scale,
badgeColor: Theme.of(context).colorScheme.primary,
position: badgePosition,
badgeStyle: b.BadgeStyle(
badgeColor: Theme.of(context).colorScheme.primary,
elevation: 4,
borderSide: BorderSide(
color: Theme.of(context).colorScheme.background,
width: 2,
),
elevation: 4,
borderSide: BorderSide(
color: Theme.of(context).colorScheme.background,
width: 2,
),
child: child,
);