feat notes

This commit is contained in:
2026-05-22 10:12:56 +02:00
parent 23d3356e6b
commit 7b072a219d
3 changed files with 20 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class NotesListScreen extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor:
Colors.grey.shade50, // Sfondo neutro per far risaltare i post-it
Colors.grey.shade900, // Sfondo neutro per far risaltare i post-it
appBar: AppBar(
title: const Text(
'Bacheca Note',
@@ -157,7 +157,11 @@ class NotesListScreen extends StatelessWidget {
);
return GestureDetector(
onTap: () => context.push('/notes/edit', extra: note),
onTap: () => context.pushNamed(
Routes.noteForm,
pathParameters: {'id': note.id!},
extra: note,
),
child: Container(
decoration: BoxDecoration(
color: noteColor,