From 120c36cdbb91aa18a8deb33247b84f8a9f9c53ca Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 2 Jun 2020 15:27:13 +0530 Subject: Adds base component structure --- lib/components/AppList.dart | 0 lib/components/SearchableAppList.dart | 0 lib/main.dart | 27 +++++++++++++++++++++++++++ lib/pages/Apps.dart | 9 +++++++++ lib/pages/Home.dart | 9 +++++++++ 5 files changed, 45 insertions(+) create mode 100644 lib/components/AppList.dart create mode 100644 lib/components/SearchableAppList.dart create mode 100644 lib/main.dart create mode 100644 lib/pages/Apps.dart create mode 100644 lib/pages/Home.dart (limited to 'lib') diff --git a/lib/components/AppList.dart b/lib/components/AppList.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/components/SearchableAppList.dart b/lib/components/SearchableAppList.dart new file mode 100644 index 0000000..e69de29 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'); + } +} + -- cgit v1.3.1