aboutsummaryrefslogtreecommitdiff
path: root/lib/pages/Apps.dart
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-05 21:55:06 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-05 21:55:06 +0530
commitf4fc9576aa77045d3b6c26263a7200af0c8b6151 (patch)
tree5d139bb258ae60fb3d1371652ad6c884ead3abc9 /lib/pages/Apps.dart
parent83be047e15efd91a26ac27da1710b0e273706b19 (diff)
downloaddaft-launcher-f4fc9576aa77045d3b6c26263a7200af0c8b6151.tar.gz
daft-launcher-f4fc9576aa77045d3b6c26263a7200af0c8b6151.zip
refactors application data to use streams
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),
),