aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-05 21:59:22 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-05 21:59:22 +0530
commite51594dd210282ebfbc06f9fd6c8df2024add6b6 (patch)
tree02f1006f466ddb0bf92a6456a550583017efdd59
parentf4fc9576aa77045d3b6c26263a7200af0c8b6151 (diff)
downloaddaft-launcher-e51594dd210282ebfbc06f9fd6c8df2024add6b6.tar.gz
daft-launcher-e51594dd210282ebfbc06f9fd6c8df2024add6b6.zip
Plugged the refresh action
-rw-r--r--lib/pages/Home.dart7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pages/Home.dart b/lib/pages/Home.dart
index 1ce6d01..0e3ff5e 100644
--- a/lib/pages/Home.dart
+++ b/lib/pages/Home.dart
@@ -7,6 +7,8 @@ import '../components/Option.dart';
import '../components/AppList.dart';
import '../components/FixedContainer.dart';
import '../data/config.dart';
+import '../data/applications.dart';
+import '../data/favorites.dart';
class StatusInfoCard extends StatelessWidget {
DateTime dateTime;
@@ -45,7 +47,10 @@ class StatusInfoCard extends StatelessWidget {
semanticLabel: 'Refresh',
),
child: Text('Refresh'),
- onTap: () {},
+ onTap: () {
+ refreshApplications();
+ refreshFavorites();
+ },
),
],
),