From 51dae022dcf9b4dcea7e7709ad0915c10977326a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Wed, 3 Jun 2020 23:14:35 +0530 Subject: Add to favorite feature complete --- lib/pages/Home.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/pages') 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 time$; DateTime defaultTime; + List 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), + )), ], ) ); -- cgit v1.3.1