49 Commits
dev ... main

Author SHA1 Message Date
10a690a2df build fix android 2023-09-29 15:26:31 +02:00
grata
3cff59cfd3 removed duplicated library 2023-09-29 15:26:31 +02:00
Giulia
982fb5df54 notes 2023-09-29 15:26:31 +02:00
c26e04c8c0 fix init database 2023-09-29 15:26:31 +02:00
grata
b586755f7b removed controller on dev 2023-09-29 15:26:31 +02:00
grata
98c04bfc16 removed controller 2023-09-29 15:26:31 +02:00
grata
e67357fe5d collegato lightsql e firebase 2023-09-29 15:26:31 +02:00
Tito Arrigo
06e92c4c77 bo non lo so 2023-09-29 15:26:30 +02:00
grata
b78679ece2 database work in progress 2023-09-29 15:26:30 +02:00
56b40c9514 work in progress database 2023-09-29 15:26:29 +02:00
grata
e76adea92b file strani 2023-09-29 15:26:28 +02:00
Tito Arrigo
05d8c25b3e new ui model integration 2023-09-29 15:26:27 +02:00
grata
cd1f6238f8 Added Firebase 2023-09-29 15:26:27 +02:00
grata
836a637219 crud 2023-09-29 15:26:26 +02:00
c3a444f863 work in progress database 2023-09-29 15:26:24 +02:00
902c72d75b entity upgrade 2023-09-29 15:26:24 +02:00
5e4a3e28da database init 2023-09-29 15:26:23 +02:00
Giulia
2ac4444f9e fix notes 2023-09-29 15:26:22 +02:00
Giulia
4b46c8cc01 fix 2023-09-29 15:26:22 +02:00
Giulia
a8074c8701 fixed style 2023-09-29 15:26:22 +02:00
lama137
6b3208b855 TITOOOOOOOOOOOOO 2023-09-29 15:26:21 +02:00
Giulia
542bb4265c create note 2023-09-29 15:26:20 +02:00
lama137
f5709b992c Aggiornamento note e pulsanti. 2023-09-29 15:26:18 +02:00
Giulia
a7726efb70 create note 2023-09-29 15:26:17 +02:00
Giulia
eba59f7cf5 create note 2023-09-29 15:26:17 +02:00
Giulia
a6ba19abdd fix 2023-09-29 15:26:17 +02:00
lama137
6eb06f6a05 Aggiornamento note e pulsanti. 2023-09-29 15:26:17 +02:00
lama137
251e47ae56 Aggiornamento note e pulsanti. 2023-09-29 15:26:17 +02:00
Giulia
335fec8793 fixed navigation and added create new note page 2023-09-29 15:26:17 +02:00
Giulia
92f3dcf84d add note button 2023-09-29 15:26:17 +02:00
lama137
1ff2e9da0a IDK 2023-09-29 15:26:17 +02:00
9b3634e1cd entity 2023-09-29 15:26:17 +02:00
4fdb310e31 note entity 2023-09-29 15:26:17 +02:00
Tito Arrigo
b24a80425b inizzializazione pagine 2023-09-29 15:26:16 +02:00
300062b2d2 new directory 2023-09-29 15:26:13 +02:00
fd14dfe0ff database 2023-09-29 15:26:10 +02:00
simonmaggini
f51c4c1958 listViw builder 2023-09-29 15:26:04 +02:00
Tito Arrigo
42ae2d1c4c grafica quasi finita 2023-09-29 15:26:04 +02:00
Tito Arrigo
47f2b0b62a merge 2023-09-29 15:26:04 +02:00
Tito Arrigo
f951469e4b grafica pagina TodayView.dart 2023-09-29 15:26:04 +02:00
Tito Arrigo
473f6d9a5f grafica pagina TodayView.dart 2023-09-29 15:26:04 +02:00
Tito Arrigo
8363776e78 inizzializazione pagine 2023-09-29 15:26:04 +02:00
0e12953383 . 2023-09-29 15:26:04 +02:00
grata
7f67bd5b16 Revert "google files"
This reverts commit d598a41475.
2023-09-29 15:26:04 +02:00
grata
d20ad5d532 google files 2023-09-29 15:26:03 +02:00
grata
2d7d942dc4 added firebase 2023-09-29 15:25:55 +02:00
Tito Arrigo
4d898eb5ea basic structure with material 3 2023-09-29 15:25:55 +02:00
Tito Arrigo
ce1e5223f0 bottom nav bar init 2023-09-29 15:25:55 +02:00
Tito Arrigo
0f9ee28860 added GoggleServie-Info.plist 2023-09-27 13:50:14 +02:00
4 changed files with 63 additions and 43 deletions

View File

@@ -33,23 +33,7 @@ class Promemoria {
this.arrayPromemoria,
this.description,
this.priority,
this.color
);
Promemoria.today(
this.title,
this.creationDate,
this.lastModificationDate,
this.expirationDate,
this.description,
);
Promemoria.inbox(
this.title,
this.creationDate,
this.lastModificationDate,
this.description,
);
this.color);
Map<String, dynamic> toMap() {
return {

View File

@@ -1,10 +1,9 @@
import 'dart:ffi';
import 'package:flutter/material.dart';
import 'pages/testUI.dart';
import 'pages/TodayView.dart';
import 'pages/InboxView.dart';
import 'pages/NotesView.dart';
import 'pages/test.dart';
class Navigation extends StatefulWidget {
const Navigation({super.key});
@@ -15,11 +14,12 @@ class Navigation extends StatefulWidget {
class _NavigationState extends State<Navigation> {
int _selectedIndex = 0;
int _selectedIndex = 3;
static const List<Widget> _widgetOptions = <Widget>[
TodayView(),
InboxView(),
NotesView(),
Test()
];
void _onItemTapped(int index) {
@@ -31,17 +31,17 @@ class _NavigationState extends State<Navigation> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(child: _widgetOptions.elementAt(_selectedIndex)),
body: Center(child: _widgetOptions.elementAt(_selectedIndex)),
bottomNavigationBar: BottomNavigationBar(
items: const <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.today), label: "today"),
icon: Icon(Icons.calendar_today), label: "today"),
BottomNavigationBarItem(icon: Icon(Icons.inbox), label: "Inbox"),
BottomNavigationBarItem(icon: Icon(Icons.note), label: "Notes"),
BottomNavigationBarItem(icon: Icon(Icons.settings), label: "Settings")
],
currentIndex: _selectedIndex,
onTap: _onItemTapped,
type: BottomNavigationBarType.fixed,
),
);
}

View File

@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
//import components
import '../Components/Reminder.dart';
import 'CreateNewNote.dart';
import 'NoteDetailView.dart';
class InboxView extends StatefulWidget {
const InboxView({super.key});
@@ -11,18 +10,55 @@ class InboxView extends StatefulWidget {
}
class _InboxViewState extends State<InboxView> {
List<bool> _values = [false, false, false, false, false];
void _onChanged(int index, bool? newValue){
setState(() {
_values[index] = newValue ?? false;
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Inbox'),
title: Text(
'Inbox',
style: TextStyle(color: Colors.white),
),
backgroundColor: Colors.cyan.shade700,
),
floatingActionButton: FloatingActionButton(
onPressed: () {
},
child: Icon(Icons.add, color: Colors.white),
backgroundColor: Colors.cyan.shade700,
),
body: Container(
child: ListView.builder(
itemCount: 5,
itemBuilder: (context, index) {
return Card(
color: Colors.white,
child: ListTile(
leading: Checkbox(
value: _values[index],
onChanged: (newValue) => _onChanged(index, newValue),
),
title: Text("ciao", style: TextStyle(color: Colors.cyan.shade700, fontWeight: FontWeight.bold)),
subtitle: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [Text('Descrizione della nota:')]),
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => const NoteDetailView(),
),
);
},
),
);
},
),
),
body: ListView(
children: const <Widget>[
/* Reminder(),
Reminder(),*/
],
)
);
}
}

View File

@@ -8,7 +8,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:progetto_m335_flutter/myApp.dart';
import 'package:progetto_m335_flutter/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {