From 12940beab7cbb9969f876341e154fd98c7bfba15 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 17 Mar 2024 18:02:00 +0100 Subject: [PATCH] Change dialog text --- lib/notes.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/notes.dart b/lib/notes.dart index 52cecdf..d1ef58d 100644 --- a/lib/notes.dart +++ b/lib/notes.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:fnotes/theme_bloc.dart'; +import 'package:uuid/uuid.dart'; class Notes extends StatefulWidget { const Notes({ @@ -15,6 +16,8 @@ class _NotesState extends State { List notes = List.empty(growable: true); final phraseController = TextEditingController(); + Map notesMap = {}; + @override Widget build(BuildContext context) { return Scaffold( @@ -85,7 +88,7 @@ class _NotesState extends State { context: context, builder: (BuildContext context) { return AlertDialog( - title: const Text('Enter your list item here:'), + title: const Text('New list item'), content: TextField( onSubmitted: (val) { Navigator.pop(context, val);