File tree 3 files changed +28
-28
lines changed
example/widgetbook/pages/components
3 files changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ Widget phoneInputUseCase(BuildContext context) {
20
20
label: 'Phone number' ,
21
21
hintText: 'Enter your phone number' ,
22
22
countries: countries.isEmpty ? null : countries.toUpperCase ().split (',' ),
23
- // useRootNavigator: false,
24
23
),
25
24
);
26
25
},
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import '../text_input/input_label.dart';
11
11
import 'countries.dart' ;
12
12
13
13
/// ZetaPhoneInput allows entering phone numbers.
14
+ /// {@category Components}
14
15
class ZetaPhoneInput extends ZetaFormField <String > {
15
16
/// Constructor for [ZetaPhoneInput] .
16
17
const ZetaPhoneInput ({
Original file line number Diff line number Diff line change @@ -106,33 +106,33 @@ class ZetaTextInput extends ZetaFormField<String> {
106
106
assert (prefix == null || prefixText == null , 'Only one of prefix or prefixText can be accepted.' ),
107
107
assert (suffix == null || suffixText == null , 'Only one of suffix or suffixText can be accepted.' );
108
108
109
- ZetaTextInput ._border (
110
- { super .key,
111
- super .onChange,
112
- super .disabled = false ,
113
- super .requirementLevel = ZetaFormFieldRequirement .none,
114
- super .initialValue,
115
- super .rounded,
116
- this .label,
117
- this .hintText,
118
- this .placeholder,
119
- this .errorText,
120
- this .controller,
121
- this .validator,
122
- this .suffix,
123
- this .prefix,
124
- this .size = ZetaWidgetSize .medium,
125
- this .inputFormatters,
126
- this .prefixText,
127
- this .prefixTextStyle,
128
- this .suffixText,
129
- this .suffixTextStyle,
130
- this .onSubmit,
131
- this .obscureText = false ,
132
- this .keyboardType,
133
- this .focusNode,
134
- this .borderRadius})
135
- : semanticLabel = null ;
109
+ const ZetaTextInput ._border ({
110
+ super .key,
111
+ super .onChange,
112
+ super .disabled = false ,
113
+ super .requirementLevel = ZetaFormFieldRequirement .none,
114
+ super .initialValue,
115
+ super .rounded,
116
+ this .label,
117
+ this .hintText,
118
+ this .placeholder,
119
+ this .errorText,
120
+ this .controller,
121
+ this .validator,
122
+ this .suffix,
123
+ this .prefix,
124
+ this .size = ZetaWidgetSize .medium,
125
+ this .inputFormatters,
126
+ this .prefixText,
127
+ this .prefixTextStyle,
128
+ this .suffixText,
129
+ this .suffixTextStyle,
130
+ this .onSubmit,
131
+ this .obscureText = false ,
132
+ this .keyboardType,
133
+ this .focusNode,
134
+ this .borderRadius,
135
+ }) : semanticLabel = null ;
136
136
137
137
/// {@template text-input-label}
138
138
/// The label displayed above the input.
You can’t perform that action at this time.
0 commit comments