feat notes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user