From 6d7f509d65826b50a42a23e51547660ad4fbbf87 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sat, 24 Sep 2022 11:20:58 +0200 Subject: [PATCH] neon: Remove broken check for app support --- packages/neon/lib/src/pages/home/home.dart | 54 +++++++++++----------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/packages/neon/lib/src/pages/home/home.dart b/packages/neon/lib/src/pages/home/home.dart index 6c51ec3a..e081b470 100644 --- a/packages/neon/lib/src/pages/home/home.dart +++ b/packages/neon/lib/src/pages/home/home.dart @@ -508,38 +508,36 @@ class _HomePageState extends State with tray.TrayListener, WindowListe ), if (appsData != null) ...[ for (final appImplementation in appsData) ...[ - if (appsData.map((final a) => a.id).contains(appImplementation.id)) ...[ - ListTile( - key: Key('app-${appImplementation.id}'), - title: StreamBuilder( - stream: appImplementation.getUnreadCounter(_appsBloc) ?? - BehaviorSubject.seeded(0), - builder: (final context, final unreadCounterSnapshot) => Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Text(appImplementation.name(context)), - if (unreadCounterSnapshot.hasData && - unreadCounterSnapshot.data! > 0) ...[ - Text( - unreadCounterSnapshot.data!.toString(), - style: TextStyle( - color: Theme.of(context).colorScheme.primary, - fontWeight: FontWeight.bold, - fontSize: 14, - ), + ListTile( + key: Key('app-${appImplementation.id}'), + title: StreamBuilder( + stream: appImplementation.getUnreadCounter(_appsBloc) ?? + BehaviorSubject.seeded(0), + builder: (final context, final unreadCounterSnapshot) => Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(appImplementation.name(context)), + if (unreadCounterSnapshot.hasData && + unreadCounterSnapshot.data! > 0) ...[ + Text( + unreadCounterSnapshot.data!.toString(), + style: TextStyle( + color: Theme.of(context).colorScheme.primary, + fontWeight: FontWeight.bold, + fontSize: 14, ), - ], + ), ], - ), + ], ), - leading: appImplementation.buildIcon(context), - minLeadingWidth: 0, - onTap: () { - _appsBloc.setActiveApp(appImplementation.id); - Navigator.of(context).pop(); - }, ), - ], + leading: appImplementation.buildIcon(context), + minLeadingWidth: 0, + onTap: () { + _appsBloc.setActiveApp(appImplementation.id); + Navigator.of(context).pop(); + }, + ), ], ], ],