aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-02 15:27:13 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-02 15:27:13 +0530
commit120c36cdbb91aa18a8deb33247b84f8a9f9c53ca (patch)
tree9e1ed282a6a96998fef9adfed789c6263db1ac3b /lib
parentf35758beb2719c64e513f684b366c3d0db1c0ec0 (diff)
downloaddaft-launcher-120c36cdbb91aa18a8deb33247b84f8a9f9c53ca.tar.gz
daft-launcher-120c36cdbb91aa18a8deb33247b84f8a9f9c53ca.zip
Adds base component structure
Diffstat (limited to 'lib')
-rw-r--r--lib/components/AppList.dart0
-rw-r--r--lib/components/SearchableAppList.dart0
-rw-r--r--lib/main.dart27
-rw-r--r--lib/pages/Apps.dart9
-rw-r--r--lib/pages/Home.dart9
5 files changed, 45 insertions, 0 deletions
diff --git a/lib/components/AppList.dart b/lib/components/AppList.dart
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/components/AppList.dart
diff --git a/lib/components/SearchableAppList.dart b/lib/components/SearchableAppList.dart
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/lib/components/SearchableAppList.dart
diff --git a/lib/main.dart b/lib/main.dart
new file mode 100644
index 0000000..9397dc9
--- /dev/null
+++ b/lib/main.dart
@@ -0,0 +1,27 @@
+import 'package:flutter/material.dart';
+
+import 'pages/Home.dart';
+import 'pages/Apps.dart';
+
+void main() {
+ runApp(MyApp());
+}
+
+class MyApp extends StatelessWidget {
+ // This widget is the root of your application.
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: 'Flutter Demo',
+ home: Scaffold(
+ body: PageView(
+ controller: PageViewController(),
+ children: [
+ HomeView(),
+ AppView(),
+ ],
+ ),
+ ),
+ );
+ }
+}
diff --git a/lib/pages/Apps.dart b/lib/pages/Apps.dart
new file mode 100644
index 0000000..3322c0b
--- /dev/null
+++ b/lib/pages/Apps.dart
@@ -0,0 +1,9 @@
+import 'package:flutter/material.dart';
+
+class AppsView extends StatelessWidget {
+ @override
+ Widget build(BuildContext ctx) {
+ return Text('Apps');
+ }
+}
+
diff --git a/lib/pages/Home.dart b/lib/pages/Home.dart
new file mode 100644
index 0000000..32b8729
--- /dev/null
+++ b/lib/pages/Home.dart
@@ -0,0 +1,9 @@
+import 'package:flutter/material.dart';
+
+class HomeView extends StatelessWidget {
+ @override
+ Widget build(BuildContext ctx) {
+ return Text('Home');
+ }
+}
+