From 4006030f5baace51ec891215889f1cd43e4ad869 Mon Sep 17 00:00:00 2001 From: Tito Arrigo Date: Wed, 27 Sep 2023 13:48:10 +0200 Subject: [PATCH 1/2] 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 2/2] 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