kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix navbar notifications icon to only show when "has notifications" icon when undismissed ones
rodzic
0c55723b04
commit
ac6602dc45
|
@ -23,7 +23,8 @@ class AppBottomNavBar extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final notificationManager = context.watch<NotificationsManager>();
|
||||
final hasNotifications = notificationManager.notifications.isNotEmpty;
|
||||
final hasNotifications =
|
||||
notificationManager.notifications.where((n) => !n.dismissed).isNotEmpty;
|
||||
return BottomNavigationBar(
|
||||
onTap: (index) {
|
||||
final newButton = _indexToButton(index);
|
||||
|
|
Ładowanie…
Reference in New Issue