Complete recipes page

This commit is contained in:
Alexander Laevens
2022-11-27 20:29:39 -07:00
parent 373eabe002
commit 9b1fc4e0e2
71 changed files with 806 additions and 251 deletions

View File

@@ -14,6 +14,12 @@ class TextEntryForm extends StatefulWidget {
class _TextEntryFormState extends State<TextEntryForm> {
late TextEditingController _textController;
@override
void dispose() {
_textController.dispose();
super.dispose();
}
@override
void initState() {
super.initState();
@@ -36,7 +42,11 @@ class _TextEntryFormState extends State<TextEntryForm> {
),
const Divider(),
TextFormField(
autofocus: true,
controller: _textController,
onFieldSubmitted: (value) {
Navigator.pop(context, value);
},
decoration: InputDecoration(hintText: widget.label),
),
Padding(