Handle nullable vs nonnullable mismatch

This commit is contained in:
Ian VanSchooten 2024-08-29 08:21:20 -04:00
parent b0e1ed4f2c
commit 8e5deb94e8
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class _SpecialTextFieldState extends State<SpecialTextField> {
autofocus: widget.autofocus,
focusNode: widget.focusNode,
onChanged: widget.onChanged,
enabled: widget.enabled,
enabled: widget.enabled ?? false, // TODO: maybe there's a better way to do this? widget.enabled is nullable, should it be?
onSubmitted: (_) {
if (widget.nextFocusNode != null) {
FocusScope.of(context).requestFocus(widget.nextFocusNode);