Complete recipes page
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user