diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-03 23:14:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-03 23:14:35 +0530 |
| commit | 51dae022dcf9b4dcea7e7709ad0915c10977326a (patch) | |
| tree | 53d1dab344fd157e0a8ea4238bb98df976e3f547 /lib/pages/Home.dart | |
| parent | 620f9ea0516d951e1d21793a5bb22e05a5c56949 (diff) | |
| download | daft-launcher-51dae022dcf9b4dcea7e7709ad0915c10977326a.tar.gz daft-launcher-51dae022dcf9b4dcea7e7709ad0915c10977326a.zip | |
Add to favorite feature complete
Diffstat (limited to '')
| -rw-r--r-- | lib/pages/Home.dart | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/pages/Home.dart b/lib/pages/Home.dart index b9663fd..1309596 100644 --- a/lib/pages/Home.dart +++ b/lib/pages/Home.dart @@ -1,7 +1,9 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; +import 'package:device_apps/device_apps.dart'; +import '../components/AppList.dart'; import '../components/FixedContainer.dart'; import '../data/config.dart'; @@ -85,8 +87,11 @@ class StatusInfoCard extends StatelessWidget { class HomeView extends StatelessWidget { Stream<DateTime> time$; DateTime defaultTime; + List<Application> favoriteApps; - HomeView(this.time$, { this.defaultTime }): super(); + HomeView({ this.time$, this.defaultTime, this.favoriteApps }): super(); + + void noop(Application app) {} @override Widget build(BuildContext ctx) { @@ -95,7 +100,9 @@ class HomeView extends StatelessWidget { child: Column( children: [ StatusInfoCard(time$, defaultTime: defaultTime), - Expanded(child: Text('Content')), + Expanded(child: Container( + child: AppList(appList: favoriteApps, openApp: noop, openOptionsMenu: noop), + )), ], ) ); |
