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

@@ -109,6 +109,11 @@ class _NoteFormScreenState extends State<NoteFormScreen> {
}
}
void _deleteNote() {
_notesBloc.add(NoteDeletedRequested(widget.note.id!));
Navigator.pop(context);
}
void _exportNote() {
// La logica di export che abbiamo concordato ieri!
ScaffoldMessenger.of(context).showSnackBar(
@@ -298,6 +303,14 @@ class _NoteFormScreenState extends State<NoteFormScreen> {
const SizedBox(width: 16),
// Azioni spostate dentro la nota!
IconButton(
icon: const Icon(
Icons.delete_outline,
color: Colors.black87,
),
tooltip: 'Elimina',
onPressed: _deleteNote,
),
IconButton(
icon: Icon(
_isPinned ? Icons.push_pin : Icons.push_pin_outlined,