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