Default text field enabled to true
This commit is contained in:
parent
1b8449fb42
commit
8d40bd70d7
|
@ -90,7 +90,7 @@ class _SpecialTextFieldState extends State<SpecialTextField> {
|
||||||
autofocus: widget.autofocus,
|
autofocus: widget.autofocus,
|
||||||
focusNode: widget.focusNode,
|
focusNode: widget.focusNode,
|
||||||
onChanged: widget.onChanged,
|
onChanged: widget.onChanged,
|
||||||
enabled: widget.enabled ?? false, // TODO: maybe there's a better way to do this? widget.enabled is nullable, should it be?
|
enabled: widget.enabled ?? true,
|
||||||
onSubmitted: (_) {
|
onSubmitted: (_) {
|
||||||
if (widget.nextFocusNode != null) {
|
if (widget.nextFocusNode != null) {
|
||||||
FocusScope.of(context).requestFocus(widget.nextFocusNode);
|
FocusScope.of(context).requestFocus(widget.nextFocusNode);
|
||||||
|
|
Loading…
Reference in New Issue