From 22f94a5c309d1c74527f624f312b572cf95d1f6d Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Sun, 28 May 2023 12:12:19 +0200 Subject: [PATCH] neon: use helper methods to find active application --- packages/neon/neon/lib/src/router.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/neon/neon/lib/src/router.dart b/packages/neon/neon/lib/src/router.dart index 8491fde9..4e9de5eb 100644 --- a/packages/neon/neon/lib/src/router.dart +++ b/packages/neon/neon/lib/src/router.dart @@ -105,7 +105,7 @@ class NextcloudAppSettingsRoute extends GoRouteData { @override Widget build(final BuildContext context, final GoRouterState state) { final appImplementations = Provider.of>(context, listen: false); - final appImplementation = appImplementations.firstWhere((final app) => app.id == appid); + final appImplementation = appImplementations.find(appid)!; return NextcloudAppSettingsPage(appImplementation: appImplementation); }