mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-22 19:15:27 +00:00
dart fix --apply --code=curly_braces_in_flow_control_structures
This commit is contained in:
parent
288f0bbc94
commit
50ad945c17
2 changed files with 4 additions and 2 deletions
|
@ -106,8 +106,9 @@ class _IPFormField extends FormFieldState<String> {
|
|||
oldWidget.controller?.removeListener(_handleControllerChanged);
|
||||
widget.controller?.addListener(_handleControllerChanged);
|
||||
|
||||
if (oldWidget.controller != null && widget.controller == null)
|
||||
if (oldWidget.controller != null && widget.controller == null) {
|
||||
_controller = TextEditingController.fromValue(oldWidget.controller!.value);
|
||||
}
|
||||
if (widget.controller != null) {
|
||||
setValue(widget.controller!.text);
|
||||
if (oldWidget.controller == null) _controller = null;
|
||||
|
|
|
@ -115,8 +115,9 @@ class _PlatformTextFormFieldState extends FormFieldState<String> {
|
|||
oldWidget.controller?.removeListener(_handleControllerChanged);
|
||||
widget.controller?.addListener(_handleControllerChanged);
|
||||
|
||||
if (oldWidget.controller != null && widget.controller == null)
|
||||
if (oldWidget.controller != null && widget.controller == null) {
|
||||
_controller = TextEditingController.fromValue(oldWidget.controller!.value);
|
||||
}
|
||||
if (widget.controller != null) {
|
||||
setValue(widget.controller!.text);
|
||||
if (oldWidget.controller == null) _controller = null;
|
||||
|
|
Loading…
Reference in a new issue