aboutsummaryrefslogtreecommitdiff
path: root/lib/pages/Apps.dart
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-04 10:57:41 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-04 10:57:41 +0530
commit173cb600667e730c337a436c9407d5b268491e9c (patch)
treef5a9c93e1dafddc08a87b9943ea97b942229d69f /lib/pages/Apps.dart
parent41f04f9e2770761166b67fee9a2eb757b4aa1f33 (diff)
downloaddaft-launcher-173cb600667e730c337a436c9407d5b268491e9c.tar.gz
daft-launcher-173cb600667e730c337a436c9407d5b268491e9c.zip
Refactors context menu into its own component
Diffstat (limited to '')
-rw-r--r--lib/pages/Apps.dart24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/pages/Apps.dart b/lib/pages/Apps.dart
index 8c61814..613b0e3 100644
--- a/lib/pages/Apps.dart
+++ b/lib/pages/Apps.dart
@@ -6,30 +6,6 @@ import '../components/SearchableAppList.dart';
import '../data/favorites.dart';
-class Option extends StatelessWidget {
- void Function() onTap;
- Widget child;
-
- Option({ this.child, this.onTap }): super();
-
- @override
- build(BuildContext ctx) {
- return Column(
- children: [
- ListTile(
- contentPadding: const EdgeInsets.symmetric(vertical: 0.0, horizontal: 16.0),
- title: child,
- onTap: () {
- onTap();
- Navigator.pop(ctx);
- },
- ),
- Divider(height: 1.0),
- ],
- );
- }
-}
-
class AppsView extends StatelessWidget {
void Function(Application) openApp;
void Function(BuildContext, Application) openOptionsMenu;