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);