aboutsummaryrefslogtreecommitdiff
path: root/lib/pages/Home.dart
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-11-13 20:13:01 +0530
committerAkshay Nair <phenax5@gmail.com>2020-11-13 20:13:01 +0530
commit7382d42679d202cc0caa252026ebbd2d3cb1e202 (patch)
tree71438568f4d2c2e8336fb3ba3c7b0685ece42cf6 /lib/pages/Home.dart
parent9ec12ef75ae742c0560591c48d14a44418038f79 (diff)
downloaddaft-launcher-test.tar.gz
daft-launcher-test.zip
testtest
Diffstat (limited to 'lib/pages/Home.dart')
-rw-r--r--lib/pages/Home.dart11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/pages/Home.dart b/lib/pages/Home.dart
index 0e3ff5e..2df9779 100644
--- a/lib/pages/Home.dart
+++ b/lib/pages/Home.dart
@@ -11,7 +11,7 @@ import '../data/applications.dart';
import '../data/favorites.dart';
class StatusInfoCard extends StatelessWidget {
- DateTime dateTime;
+ final DateTime dateTime;
StatusInfoCard({ this.dateTime }): super();
@@ -122,10 +122,10 @@ class StatusInfoCard extends StatelessWidget {
}
class HomeView extends StatelessWidget {
- DateTime dateTime;
- List<Application> favoriteApps;
- void Function(Application) openApp;
- void Function(BuildContext, Application) openOptionsMenu;
+ final DateTime dateTime;
+ final List<Application> favoriteApps;
+ final void Function(Application) openApp;
+ final void Function(BuildContext, Application) openOptionsMenu;
HomeView({ this.dateTime, this.favoriteApps, this.openApp, this.openOptionsMenu }): super();
@@ -141,6 +141,7 @@ class HomeView extends StatelessWidget {
appList: favoriteApps,
openApp: openApp,
openOptionsMenu: (app) => openOptionsMenu(ctx, app),
+ allowReorder: true,
),
)),
],