Compare commits
49 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 10a690a2df | |||
|
|
3cff59cfd3 | ||
|
|
982fb5df54 | ||
| c26e04c8c0 | |||
|
|
b586755f7b | ||
|
|
98c04bfc16 | ||
|
|
e67357fe5d | ||
|
|
06e92c4c77 | ||
|
|
b78679ece2 | ||
| 56b40c9514 | |||
|
|
e76adea92b | ||
|
|
05d8c25b3e | ||
|
|
cd1f6238f8 | ||
|
|
836a637219 | ||
| c3a444f863 | |||
| 902c72d75b | |||
| 5e4a3e28da | |||
|
|
2ac4444f9e | ||
|
|
4b46c8cc01 | ||
|
|
a8074c8701 | ||
|
|
6b3208b855 | ||
|
|
542bb4265c | ||
|
|
f5709b992c | ||
|
|
a7726efb70 | ||
|
|
eba59f7cf5 | ||
|
|
a6ba19abdd | ||
|
|
6eb06f6a05 | ||
|
|
251e47ae56 | ||
|
|
335fec8793 | ||
|
|
92f3dcf84d | ||
|
|
1ff2e9da0a | ||
| 9b3634e1cd | |||
| 4fdb310e31 | |||
|
|
b24a80425b | ||
| 300062b2d2 | |||
| fd14dfe0ff | |||
|
|
f51c4c1958 | ||
|
|
42ae2d1c4c | ||
|
|
47f2b0b62a | ||
|
|
f951469e4b | ||
|
|
473f6d9a5f | ||
|
|
8363776e78 | ||
| 0e12953383 | |||
|
|
7f67bd5b16 | ||
|
|
d20ad5d532 | ||
|
|
2d7d942dc4 | ||
|
|
4d898eb5ea | ||
|
|
ce1e5223f0 | ||
|
|
0f9ee28860 |
@@ -33,23 +33,7 @@ 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,10 +1,9 @@
|
|||||||
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});
|
||||||
@@ -15,11 +14,12 @@ class Navigation extends StatefulWidget {
|
|||||||
|
|
||||||
class _NavigationState extends State<Navigation> {
|
class _NavigationState extends State<Navigation> {
|
||||||
|
|
||||||
int _selectedIndex = 0;
|
int _selectedIndex = 3;
|
||||||
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: SafeArea(child: _widgetOptions.elementAt(_selectedIndex)),
|
body: Center(child: _widgetOptions.elementAt(_selectedIndex)),
|
||||||
bottomNavigationBar: BottomNavigationBar(
|
bottomNavigationBar: BottomNavigationBar(
|
||||||
items: const <BottomNavigationBarItem>[
|
items: const <BottomNavigationBarItem>[
|
||||||
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.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,
|
],
|
||||||
onTap: _onItemTapped,
|
currentIndex: _selectedIndex,
|
||||||
type: BottomNavigationBarType.fixed,
|
onTap: _onItemTapped,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'CreateNewNote.dart';
|
||||||
//import components
|
import 'NoteDetailView.dart';
|
||||||
import '../Components/Reminder.dart';
|
|
||||||
|
|
||||||
class InboxView extends StatefulWidget {
|
class InboxView extends StatefulWidget {
|
||||||
const InboxView({super.key});
|
const InboxView({super.key});
|
||||||
@@ -11,18 +10,55 @@ 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: const Text('Inbox'),
|
title: Text(
|
||||||
|
'Inbox',
|
||||||
|
style: TextStyle(color: Colors.white),
|
||||||
),
|
),
|
||||||
body: ListView(
|
backgroundColor: Colors.cyan.shade700,
|
||||||
children: const <Widget>[
|
),
|
||||||
/* Reminder(),
|
floatingActionButton: FloatingActionButton(
|
||||||
Reminder(),*/
|
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(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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/myApp.dart';
|
import 'package:progetto_m335_flutter/main.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