aboutsummaryrefslogtreecommitdiff
path: root/lib/pages/Home.dart
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-03 23:14:35 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-03 23:14:35 +0530
commit51dae022dcf9b4dcea7e7709ad0915c10977326a (patch)
tree53d1dab344fd157e0a8ea4238bb98df976e3f547 /lib/pages/Home.dart
parent620f9ea0516d951e1d21793a5bb22e05a5c56949 (diff)
downloaddaft-launcher-51dae022dcf9b4dcea7e7709ad0915c10977326a.tar.gz
daft-launcher-51dae022dcf9b4dcea7e7709ad0915c10977326a.zip
Add to favorite feature complete
Diffstat (limited to 'lib/pages/Home.dart')
-rw-r--r--lib/pages/Home.dart11
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),
+ )),
],
)
);