aboutsummaryrefslogtreecommitdiff
path: root/lib/pages/Apps.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pages/Apps.dart')
-rw-r--r--lib/pages/Apps.dart11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/pages/Apps.dart b/lib/pages/Apps.dart
index 97d2dbc..f221d27 100644
--- a/lib/pages/Apps.dart
+++ b/lib/pages/Apps.dart
@@ -9,21 +9,16 @@ import '../data/favorites.dart';
class AppsView extends StatelessWidget {
void Function(Application) openApp;
void Function(BuildContext, Application) openOptionsMenu;
-
- AppsView({ this.openApp, this.openOptionsMenu }): super();
+ List<Application> appList;
- Future<List<Application>> appListF = DeviceApps.getInstalledApplications(
- includeSystemApps: true,
- onlyAppsWithLaunchIntent: true,
- includeAppIcons: false,
- );
+ AppsView({ this.appList, this.openApp, this.openOptionsMenu }): super();
@override
Widget build(BuildContext ctx) {
return FixedContainer(
padding: const EdgeInsets.symmetric(vertical: 36.0, horizontal: 16.0),
child: SearchableAppList(
- appListF: appListF,
+ appList: appList,
openApp: openApp,
openOptionsMenu: (app) => openOptionsMenu(ctx, app),
),