Default text field enabled to true

This commit is contained in:
Ian VanSchooten 2024-09-20 12:54:28 -04:00
parent 1b8449fb42
commit 8d40bd70d7
1 changed files with 1 additions and 1 deletions

View File

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