Compare commits
62 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ab01f8625b | |||
|
|
4759f768f3 | ||
|
|
07604bddaa | ||
|
|
2b18144691 | ||
| e07fd0d191 | |||
|
|
de4769cbb8 | ||
|
|
e4cf349cbb | ||
|
|
93b54f357b | ||
|
|
0628fcbbdb | ||
|
|
5b02be9ae7 | ||
|
|
8049165f44 | ||
|
|
a4a13cc2ea | ||
|
|
67dd09b2dd | ||
|
|
34a73c62f7 | ||
| b75903e3cb | |||
|
|
039fde6dbe | ||
|
|
ca504e5e24 | ||
|
|
ccb56ffa9c | ||
|
|
5c68d85b98 | ||
|
|
7aa8c8dcbc | ||
|
|
bf3a9c552d | ||
|
|
c2196663ae | ||
|
|
7d1bec6b0c | ||
|
|
6d9eb5f4db | ||
|
|
b284a3d6d6 | ||
|
|
d69c7ab525 | ||
|
|
c0c090085f | ||
|
|
a58721a6f4 | ||
|
|
850497301c | ||
|
|
4121239e36 | ||
|
|
abc0926f49 | ||
| 64b4f64f8c | |||
|
|
0d53d1421f | ||
|
|
b81cfc70fb | ||
|
|
c2824c99a4 | ||
| 52d7defb75 | |||
|
|
e061871c4f | ||
| 782bbebce9 | |||
|
|
0fb537d24e | ||
|
|
06a3712d0a | ||
|
|
65ed67b8f6 | ||
|
|
29a54bbcbc | ||
|
|
bf7981671d | ||
|
|
2f851bc630 | ||
|
|
4c4dcc2654 | ||
| 05386ac20f | |||
| 9f26bc8595 | |||
|
|
c35684c8f1 | ||
|
|
330d0e4c61 | ||
|
|
6a05861341 | ||
| 205f575db5 | |||
|
|
67aa0d4341 | ||
| ecf7011302 | |||
|
|
4006030f5b | ||
| 58e013a709 | |||
| 929c4cc403 | |||
| 8eff19cecc | |||
|
|
416c230a33 | ||
|
|
e793631ab0 | ||
|
|
dfc0d43060 | ||
|
|
d598a41475 | ||
|
|
5a3aea16ba |
@@ -33,7 +33,23 @@ class Promemoria {
|
|||||||
this.arrayPromemoria,
|
this.arrayPromemoria,
|
||||||
this.description,
|
this.description,
|
||||||
this.priority,
|
this.priority,
|
||||||
this.color);
|
this.color
|
||||||
|
);
|
||||||
|
|
||||||
|
Promemoria.today(
|
||||||
|
this.title,
|
||||||
|
this.creationDate,
|
||||||
|
this.lastModificationDate,
|
||||||
|
this.expirationDate,
|
||||||
|
this.description,
|
||||||
|
);
|
||||||
|
|
||||||
|
Promemoria.inbox(
|
||||||
|
this.title,
|
||||||
|
this.creationDate,
|
||||||
|
this.lastModificationDate,
|
||||||
|
this.description,
|
||||||
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import 'dart:ffi';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'pages/testUI.dart';
|
|
||||||
import 'pages/TodayView.dart';
|
import 'pages/TodayView.dart';
|
||||||
import 'pages/InboxView.dart';
|
import 'pages/InboxView.dart';
|
||||||
import 'pages/NotesView.dart';
|
import 'pages/NotesView.dart';
|
||||||
import 'pages/test.dart';
|
|
||||||
|
|
||||||
class Navigation extends StatefulWidget {
|
class Navigation extends StatefulWidget {
|
||||||
const Navigation({super.key});
|
const Navigation({super.key});
|
||||||
@@ -14,12 +15,11 @@ class Navigation extends StatefulWidget {
|
|||||||
|
|
||||||
class _NavigationState extends State<Navigation> {
|
class _NavigationState extends State<Navigation> {
|
||||||
|
|
||||||
int _selectedIndex = 3;
|
int _selectedIndex = 0;
|
||||||
static const List<Widget> _widgetOptions = <Widget>[
|
static const List<Widget> _widgetOptions = <Widget>[
|
||||||
TodayView(),
|
TodayView(),
|
||||||
InboxView(),
|
InboxView(),
|
||||||
NotesView(),
|
NotesView(),
|
||||||
Test()
|
|
||||||
];
|
];
|
||||||
|
|
||||||
void _onItemTapped(int index) {
|
void _onItemTapped(int index) {
|
||||||
@@ -31,17 +31,17 @@ class _NavigationState extends State<Navigation> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Center(child: _widgetOptions.elementAt(_selectedIndex)),
|
body: SafeArea(child: _widgetOptions.elementAt(_selectedIndex)),
|
||||||
bottomNavigationBar: BottomNavigationBar(
|
bottomNavigationBar: BottomNavigationBar(
|
||||||
items: const <BottomNavigationBarItem>[
|
items: const <BottomNavigationBarItem>[
|
||||||
BottomNavigationBarItem(
|
BottomNavigationBarItem(
|
||||||
icon: Icon(Icons.calendar_today), label: "today"),
|
icon: Icon(Icons.today), label: "today"),
|
||||||
BottomNavigationBarItem(icon: Icon(Icons.inbox), label: "Inbox"),
|
BottomNavigationBarItem(icon: Icon(Icons.inbox), label: "Inbox"),
|
||||||
BottomNavigationBarItem(icon: Icon(Icons.note), label: "Notes"),
|
BottomNavigationBarItem(icon: Icon(Icons.note), label: "Notes"),
|
||||||
BottomNavigationBarItem(icon: Icon(Icons.settings), label: "Settings")
|
],
|
||||||
],
|
currentIndex: _selectedIndex,
|
||||||
currentIndex: _selectedIndex,
|
onTap: _onItemTapped,
|
||||||
onTap: _onItemTapped,
|
type: BottomNavigationBarType.fixed,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'CreateNewNote.dart';
|
|
||||||
import 'NoteDetailView.dart';
|
//import components
|
||||||
|
import '../Components/Reminder.dart';
|
||||||
|
|
||||||
class InboxView extends StatefulWidget {
|
class InboxView extends StatefulWidget {
|
||||||
const InboxView({super.key});
|
const InboxView({super.key});
|
||||||
@@ -10,55 +11,18 @@ class InboxView extends StatefulWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _InboxViewState extends State<InboxView> {
|
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
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: const Text('Inbox'),
|
||||||
'Inbox',
|
|
||||||
style: TextStyle(color: Colors.white),
|
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.cyan.shade700,
|
body: ListView(
|
||||||
),
|
children: const <Widget>[
|
||||||
floatingActionButton: FloatingActionButton(
|
/* Reminder(),
|
||||||
onPressed: () {
|
Reminder(),*/
|
||||||
},
|
],
|
||||||
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(),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
|
||||||
import 'package:progetto_m335_flutter/main.dart';
|
import 'package:progetto_m335_flutter/myApp.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user