From 7382d42679d202cc0caa252026ebbd2d3cb1e202 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Nov 2020 20:13:01 +0530 Subject: test --- lib/pages/Home.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/pages') 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 favoriteApps; - void Function(Application) openApp; - void Function(BuildContext, Application) openOptionsMenu; + final DateTime dateTime; + final List 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, ), )), ], -- cgit v1.3.1