From dfc0d430600ee2af7c62409e211959f7ce8b0c31 Mon Sep 17 00:00:00 2001 From: grata Date: Wed, 27 Sep 2023 09:10:22 +0200 Subject: [PATCH 1/7] Revert "google files" This reverts commit d598a41475057fdc72d52cd53b6579d86fd1f653. --- android/app/google-services.json | 30 --------------------------- ios/Runner/GoogleService-Info.plist | 32 ----------------------------- 2 files changed, 62 deletions(-) delete mode 100644 android/app/google-services.json delete mode 100644 ios/Runner/GoogleService-Info.plist diff --git a/android/app/google-services.json b/android/app/google-services.json deleted file mode 100644 index 7e97117..0000000 --- a/android/app/google-services.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "project_info": { - "project_number": "164857321043", - "firebase_url": "https://progetto-m335-default-rtdb.europe-west1.firebasedatabase.app", - "project_id": "progetto-m335", - "storage_bucket": "progetto-m335.appspot.com" - }, - "client": [ - { - "client_info": { - "mobilesdk_app_id": "1:164857321043:android:0a67e4973f9208721ad8a6", - "android_client_info": { - "package_name": "ch.ameti.progetto_m335_flutter" - } - }, - "oauth_client": [], - "api_key": [ - { - "current_key": "AIzaSyCh2cA5AHNIS3e1Wnf48dfoCUKvmEM9J34" - } - ], - "services": { - "appinvite_service": { - "other_platform_oauth_client": [] - } - } - } - ], - "configuration_version": "1" -} \ No newline at end of file diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist deleted file mode 100644 index a4275eb..0000000 --- a/ios/Runner/GoogleService-Info.plist +++ /dev/null @@ -1,32 +0,0 @@ - - - - - API_KEY - AIzaSyAhEex7OfyJHETyC-uSydOFGABBn5KX16Q - GCM_SENDER_ID - 164857321043 - PLIST_VERSION - 1 - BUNDLE_ID - ch.ameti.progettoM335Flutter - PROJECT_ID - progetto-m335 - STORAGE_BUCKET - progetto-m335.appspot.com - IS_ADS_ENABLED - - IS_ANALYTICS_ENABLED - - IS_APPINVITE_ENABLED - - IS_GCM_ENABLED - - IS_SIGNIN_ENABLED - - GOOGLE_APP_ID - 1:164857321043:ios:b497e5d24254d60e1ad8a6 - DATABASE_URL - https://progetto-m335-default-rtdb.europe-west1.firebasedatabase.app - - \ No newline at end of file From e793631ab0545685633396ff8e1bbcd4c74240b7 Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 11:21:33 +0200 Subject: [PATCH 2/7] bottom nav bar init --- lib/main.dart | 123 +------------------------------------------- lib/myApp.dart | 14 +++++ lib/navigation.dart | 46 +++++++++++++++++ 3 files changed, 62 insertions(+), 121 deletions(-) create mode 100644 lib/myApp.dart create mode 100644 lib/navigation.dart diff --git a/lib/main.dart b/lib/main.dart index dda5554..cbaaa02 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,125 +1,6 @@ import 'package:flutter/material.dart'; +import 'myApp.dart'; void main() { - runApp(const MyApp()); -} - -class MyApp extends StatelessWidget { - const MyApp({super.key}); - - // This widget is the root of your application. - @override - Widget build(BuildContext context) { - return MaterialApp( - title: 'Flutter Demo', - theme: ThemeData( - // This is the theme of your application. - // - // TRY THIS: Try running your application with "flutter run". You'll see - // the application has a blue toolbar. Then, without quitting the app, - // try changing the seedColor in the colorScheme below to Colors.green - // and then invoke "hot reload" (save your changes or press the "hot - // reload" button in a Flutter-supported IDE, or press "r" if you used - // the command line to start the app). - // - // Notice that the counter didn't reset back to zero; the application - // state is not lost during the reload. To reset the state, use hot - // restart instead. - // - // This works for code too, not just values: Most code changes can be - // tested with just a hot reload. - colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), - useMaterial3: true, - ), - home: const MyHomePage(title: 'Flutter Demo Home Page'), - ); - } -} - -class MyHomePage extends StatefulWidget { - const MyHomePage({super.key, required this.title}); - - // This widget is the home page of your application. It is stateful, meaning - // that it has a State object (defined below) that contains fields that affect - // how it looks. - - // This class is the configuration for the state. It holds the values (in this - // case the title) provided by the parent (in this case the App widget) and - // used by the build method of the State. Fields in a Widget subclass are - // always marked "final". - - final String title; - - @override - State createState() => _MyHomePageState(); -} - -class _MyHomePageState extends State { - int _counter = 0; - - void _incrementCounter() { - setState(() { - // This call to setState tells the Flutter framework that something has - // changed in this State, which causes it to rerun the build method below - // so that the display can reflect the updated values. If we changed - // _counter without calling setState(), then the build method would not be - // called again, and so nothing would appear to happen. - _counter++; - }); - } - - @override - Widget build(BuildContext context) { - // This method is rerun every time setState is called, for instance as done - // by the _incrementCounter method above. - // - // The Flutter framework has been optimized to make rerunning build methods - // fast, so that you can just rebuild anything that needs updating rather - // than having to individually change instances of widgets. - return Scaffold( - appBar: AppBar( - // TRY THIS: Try changing the color here to a specific color (to - // Colors.amber, perhaps?) and trigger a hot reload to see the AppBar - // change color while the other colors stay the same. - backgroundColor: Theme.of(context).colorScheme.inversePrimary, - // Here we take the value from the MyHomePage object that was created by - // the App.build method, and use it to set our appbar title. - title: Text(widget.title), - ), - body: Center( - // Center is a layout widget. It takes a single child and positions it - // in the middle of the parent. - child: Column( - // Column is also a layout widget. It takes a list of children and - // arranges them vertically. By default, it sizes itself to fit its - // children horizontally, and tries to be as tall as its parent. - // - // Column has various properties to control how it sizes itself and - // how it positions its children. Here we use mainAxisAlignment to - // center the children vertically; the main axis here is the vertical - // axis because Columns are vertical (the cross axis would be - // horizontal). - // - // TRY THIS: Invoke "debug painting" (choose the "Toggle Debug Paint" - // action in the IDE, or press "p" in the console), to see the - // wireframe for each widget. - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), - ], - ), - ), - floatingActionButton: FloatingActionButton( - onPressed: _incrementCounter, - tooltip: 'Increment', - child: const Icon(Icons.add), - ), // This trailing comma makes auto-formatting nicer for build methods. - ); - } + runApp(MyApp()); } diff --git a/lib/myApp.dart b/lib/myApp.dart new file mode 100644 index 0000000..701ac2e --- /dev/null +++ b/lib/myApp.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; +import 'navigation.dart'; + +class MyApp extends StatelessWidget { + const MyApp({ Key? key }) : super(key: key); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + title: 'My App', + home: Navigation() + ); + } +} \ No newline at end of file diff --git a/lib/navigation.dart b/lib/navigation.dart new file mode 100644 index 0000000..1d5c343 --- /dev/null +++ b/lib/navigation.dart @@ -0,0 +1,46 @@ +import 'dart:ffi'; + +import 'package:flutter/material.dart'; + +class Navigation extends StatefulWidget { + const Navigation({super.key}); + + @override + State createState() => _NavigationState(); +} + +class _NavigationState extends State { + + int _selectedIndex = 1; + static const List _widgetOptions = [ + Text("Calendar"), + Text("Inbox"), + Text("Notes"), + ]; + + void _onItemTapped(int index) { + setState(() { + _selectedIndex = index; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text("BottomNavBar"), + ), + body: Center(child: _widgetOptions.elementAt(_selectedIndex)), + bottomNavigationBar: BottomNavigationBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.calendar_today), label: "today"), + BottomNavigationBarItem(icon: Icon(Icons.inbox), label: "Inbox"), + BottomNavigationBarItem(icon: Icon(Icons.note), label: "Notes"), + ], + currentIndex: _selectedIndex, + onTap: _onItemTapped, + ), + ); + } +} From 416c230a33f445c5ff4828a9bf8c4b983186fbbe Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 13:24:31 +0200 Subject: [PATCH 3/7] basic structure with material 3 --- lib/myApp.dart | 6 +++++- lib/navigation.dart | 5 +++-- lib/testUI.dart | 29 +++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 lib/testUI.dart diff --git a/lib/myApp.dart b/lib/myApp.dart index 701ac2e..2f9d223 100644 --- a/lib/myApp.dart +++ b/lib/myApp.dart @@ -6,8 +6,12 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - return const MaterialApp( + return MaterialApp( title: 'My App', + theme: ThemeData( + useMaterial3: true, + primaryColor: Colors.red, + ), home: Navigation() ); } diff --git a/lib/navigation.dart b/lib/navigation.dart index 1d5c343..ac724e9 100644 --- a/lib/navigation.dart +++ b/lib/navigation.dart @@ -1,6 +1,7 @@ import 'dart:ffi'; import 'package:flutter/material.dart'; +import 'testUI.dart'; class Navigation extends StatefulWidget { const Navigation({super.key}); @@ -11,9 +12,9 @@ class Navigation extends StatefulWidget { class _NavigationState extends State { - int _selectedIndex = 1; + int _selectedIndex = 0; static const List _widgetOptions = [ - Text("Calendar"), + TestUI(), Text("Inbox"), Text("Notes"), ]; diff --git a/lib/testUI.dart b/lib/testUI.dart new file mode 100644 index 0000000..0605f55 --- /dev/null +++ b/lib/testUI.dart @@ -0,0 +1,29 @@ +import 'package:flutter/material.dart'; + +class TestUI extends StatefulWidget { + const TestUI({super.key}); + + @override + State createState() => _TestUIState(); +} + +class _TestUIState extends State { + int _test = 0; + + void _onPressed() { + setState(() { + _test = 1; + }); + } + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: Column(children: [ + FloatingActionButton(onPressed: _onPressed), + Text('$_test'), + ],), + ), + ); + } +} From 929c4cc403279c246e982a00342c2c338223d1cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20Ku=CC=88ng?= Date: Wed, 27 Sep 2023 13:31:40 +0200 Subject: [PATCH 4/7] . --- pubspec.lock | 234 --------------------------------------------------- 1 file changed, 234 deletions(-) delete mode 100644 pubspec.lock diff --git a/pubspec.lock b/pubspec.lock deleted file mode 100644 index b5eb553..0000000 --- a/pubspec.lock +++ /dev/null @@ -1,234 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - collection: - dependency: transitive - description: - name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 - url: "https://pub.dev" - source: hosted - version: "1.17.2" - cupertino_icons: - dependency: "direct main" - description: - name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d - url: "https://pub.dev" - source: hosted - version: "1.0.6" - fake_async: - dependency: transitive - description: - name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" - source: hosted - version: "1.3.1" - firebase_core: - dependency: "direct main" - description: - name: firebase_core - sha256: "675c209c94a1817649137cbd113fc4c9ae85e48d03dd578629abbec6d8a4d93d" - url: "https://pub.dev" - source: hosted - version: "2.16.0" - firebase_core_platform_interface: - dependency: transitive - description: - name: firebase_core_platform_interface - sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 - url: "https://pub.dev" - source: hosted - version: "4.8.0" - firebase_core_web: - dependency: transitive - description: - name: firebase_core_web - sha256: e8c408923cd3a25bd342c576a114f2126769cd1a57106a4edeaa67ea4a84e962 - url: "https://pub.dev" - source: hosted - version: "2.8.0" - flutter: - dependency: "direct main" - description: flutter - source: sdk - version: "0.0.0" - flutter_lints: - dependency: "direct dev" - description: - name: flutter_lints - sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 - url: "https://pub.dev" - source: hosted - version: "2.0.3" - flutter_test: - dependency: "direct dev" - description: flutter - source: sdk - version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" - lints: - dependency: transitive - description: - name: lints - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - matcher: - dependency: transitive - description: - name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" - url: "https://pub.dev" - source: hosted - version: "0.12.16" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" - url: "https://pub.dev" - source: hosted - version: "0.5.0" - meta: - dependency: transitive - description: - name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" - url: "https://pub.dev" - source: hosted - version: "1.9.1" - path: - dependency: transitive - description: - name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" - source: hosted - version: "1.8.3" - plugin_platform_interface: - dependency: transitive - description: - name: plugin_platform_interface - sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d - url: "https://pub.dev" - source: hosted - version: "2.1.6" - sky_engine: - dependency: transitive - description: flutter - source: sdk - version: "0.0.99" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test_api: - dependency: transitive - description: - name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" - url: "https://pub.dev" - source: hosted - version: "0.6.0" - vector_math: - dependency: transitive - description: - name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - web: - dependency: transitive - description: - name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 - url: "https://pub.dev" - source: hosted - version: "0.1.4-beta" -sdks: - dart: ">=3.1.2 <4.0.0" - flutter: ">=3.3.0" From 4006030f5baace51ec891215889f1cd43e4ad869 Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 13:48:10 +0200 Subject: [PATCH 5/7] added GoggleServie-Info.plist --- ios/Runner/GoogleService-Info.plist | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ios/Runner/GoogleService-Info.plist diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..0632985 --- /dev/null +++ b/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,37 @@ + + + + + AD_UNIT_ID_FOR_BANNER_TEST + ca-app-pub-3940256099942544/2934735716 + AD_UNIT_ID_FOR_INTERSTITIAL_TEST + ca-app-pub-3940256099942544/4411468910 + CLIENT_ID + test-do-not-use.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.test-do-not-use + API_KEY + 000000000000000000000000000000000000000 + GCM_SENDER_ID + 999999999999 + PLIST_VERSION + 1 + BUNDLE_ID + com.google.example.BannerExample + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:999999999999:ios:0000000000000000 + DATABASE_URL + https://test-do-not-use.firebaseio.com + + + From 67aa0d4341bbf70e39fcf32c27ec16d8f53a1364 Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 13:51:14 +0200 Subject: [PATCH 6/7] added GoggleServie-Info.plist --- ios/Runner/GoogleService-Info.plist | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ios/Runner/GoogleService-Info.plist diff --git a/ios/Runner/GoogleService-Info.plist b/ios/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..0632985 --- /dev/null +++ b/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,37 @@ + + + + + AD_UNIT_ID_FOR_BANNER_TEST + ca-app-pub-3940256099942544/2934735716 + AD_UNIT_ID_FOR_INTERSTITIAL_TEST + ca-app-pub-3940256099942544/4411468910 + CLIENT_ID + test-do-not-use.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.test-do-not-use + API_KEY + 000000000000000000000000000000000000000 + GCM_SENDER_ID + 999999999999 + PLIST_VERSION + 1 + BUNDLE_ID + com.google.example.BannerExample + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:999999999999:ios:0000000000000000 + DATABASE_URL + https://test-do-not-use.firebaseio.com + + + From 6a0586134192d935d2b0431e2fa45ee06c88fc5e Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 14:02:53 +0200 Subject: [PATCH 7/7] inizzializazione pagine --- lib/navigation.dart | 11 +++++++---- lib/pages/InboxView.dart | 19 +++++++++++++++++++ lib/pages/NoteDetailView.dart | 19 +++++++++++++++++++ lib/pages/NotesView.dart | 19 +++++++++++++++++++ lib/pages/TodayView.dart | 19 +++++++++++++++++++ lib/{ => pages}/testUI.dart | 0 6 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 lib/pages/InboxView.dart create mode 100644 lib/pages/NoteDetailView.dart create mode 100644 lib/pages/NotesView.dart create mode 100644 lib/pages/TodayView.dart rename lib/{ => pages}/testUI.dart (100%) diff --git a/lib/navigation.dart b/lib/navigation.dart index ac724e9..180a383 100644 --- a/lib/navigation.dart +++ b/lib/navigation.dart @@ -1,7 +1,10 @@ import 'dart:ffi'; import 'package:flutter/material.dart'; -import 'testUI.dart'; +import 'pages/testUI.dart'; +import 'pages/TodayView.dart'; +import 'pages/InboxView.dart'; +import 'pages/NotesView.dart'; class Navigation extends StatefulWidget { const Navigation({super.key}); @@ -14,9 +17,9 @@ class _NavigationState extends State { int _selectedIndex = 0; static const List _widgetOptions = [ - TestUI(), - Text("Inbox"), - Text("Notes"), + TodayView(), + InboxView(), + NotesView(), ]; void _onItemTapped(int index) { diff --git a/lib/pages/InboxView.dart b/lib/pages/InboxView.dart new file mode 100644 index 0000000..4d40bd7 --- /dev/null +++ b/lib/pages/InboxView.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; + +class InboxView extends StatefulWidget { + const InboxView({super.key}); + + @override + State createState() => _InboxViewState(); +} + +class _InboxViewState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center( + child: Icon(Icons.inbox), + ) + ); + } +} diff --git a/lib/pages/NoteDetailView.dart b/lib/pages/NoteDetailView.dart new file mode 100644 index 0000000..a9802da --- /dev/null +++ b/lib/pages/NoteDetailView.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; + +class NoteDetailView extends StatefulWidget { + const NoteDetailView({super.key}); + + @override + State createState() => _NoteDetailViewState(); +} + +class _NoteDetailViewState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center( + child: Text('NoteDetailView'), + ) + ); + } +} diff --git a/lib/pages/NotesView.dart b/lib/pages/NotesView.dart new file mode 100644 index 0000000..b0d7c4b --- /dev/null +++ b/lib/pages/NotesView.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; + +class NotesView extends StatefulWidget { + const NotesView({super.key}); + + @override + State createState() => _NotesViewState(); +} + +class _NotesViewState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center( + child: Icon(Icons.note), + ) + ); + } +} diff --git a/lib/pages/TodayView.dart b/lib/pages/TodayView.dart new file mode 100644 index 0000000..cad5346 --- /dev/null +++ b/lib/pages/TodayView.dart @@ -0,0 +1,19 @@ +import 'package:flutter/material.dart'; + +class TodayView extends StatefulWidget { + const TodayView({super.key}); + + @override + State createState() => _TodayViewState(); +} + +class _TodayViewState extends State { + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center( + child: Icon(Icons.calendar_today) + ) + ); + } +} diff --git a/lib/testUI.dart b/lib/pages/testUI.dart similarity index 100% rename from lib/testUI.dart rename to lib/pages/testUI.dart