Skip to content

Commit

Permalink
#1242 Text and TextInput should return '' instead of null when value …
Browse files Browse the repository at this point in the history
…has not been set
  • Loading branch information
kmahmood74 committed Feb 16, 2024
1 parent c480e49 commit 35b0a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/widget/Text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class EnsembleText extends StatefulWidget
@override
Map<String, Function> getters() {
return {
'text': () => _controller.text,
'text': () => _controller.text ?? '',
'textStyle': () => _controller.textStyle
};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/widget/input/form_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ abstract class BaseTextInput extends StatefulWidget
@override
Map<String, Function> getters() {
return {
'value': () => textController.text,
'value': () => textController.text ?? ''
};
}

Expand Down

0 comments on commit 35b0a00

Please sign in to comment.