Fix: Enable add button when name is not null
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
This commit is contained in:
parent
f7358bb89e
commit
892fb8e4d7
1 changed files with 2 additions and 1 deletions
|
@ -76,12 +76,13 @@ class _AddLocationSheetState extends State<AddLocationSheet> {
|
|||
late ValueNotifier<double> _selectedRadiusNotifier;
|
||||
final _focusNode = FocusNode();
|
||||
final _textEditingController = TextEditingController();
|
||||
final _isEmptyNotifier = ValueNotifier(true);
|
||||
late final ValueNotifier<bool> _isEmptyNotifier;
|
||||
Widget? _keyboardTopButtons;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
_textEditingController.text = widget.name;
|
||||
_isEmptyNotifier = ValueNotifier(widget.name.isEmpty);
|
||||
_focusNode.addListener(_focusNodeListener);
|
||||
_selectedRadiusNotifier = ValueNotifier(widget.radius);
|
||||
_selectedRadiusNotifier.addListener(_selectedRadiusListener);
|
||||
|
|
Loading…
Add table
Reference in a new issue