From 8e5deb94e87671b6e27421be1fdfd49be6948f6c Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 29 Aug 2024 08:21:20 -0400 Subject: [PATCH] Handle nullable vs nonnullable mismatch --- lib/components/SpecialTextField.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/SpecialTextField.dart b/lib/components/SpecialTextField.dart index 1e09a6f..54ddf45 100644 --- a/lib/components/SpecialTextField.dart +++ b/lib/components/SpecialTextField.dart @@ -90,7 +90,7 @@ class _SpecialTextFieldState extends State { 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);