Skip to content

Commit f6f496f

Browse files
committed
lint fixes
1 parent f1cbb90 commit f6f496f

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

example/widgetbook/pages/components/phone_input_widgetbook.dart

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Widget phoneInputUseCase(BuildContext context) {
2020
label: 'Phone number',
2121
hintText: 'Enter your phone number',
2222
countries: countries.isEmpty ? null : countries.toUpperCase().split(','),
23-
// useRootNavigator: false,
2423
),
2524
);
2625
},

lib/src/components/phone_input/phone_input.dart

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import '../text_input/input_label.dart';
1111
import 'countries.dart';
1212

1313
/// ZetaPhoneInput allows entering phone numbers.
14+
/// {@category Components}
1415
class ZetaPhoneInput extends ZetaFormField<String> {
1516
/// Constructor for [ZetaPhoneInput].
1617
const ZetaPhoneInput({

lib/src/components/text_input/text_input.dart

+27-27
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,33 @@ class ZetaTextInput extends ZetaFormField<String> {
106106
assert(prefix == null || prefixText == null, 'Only one of prefix or prefixText can be accepted.'),
107107
assert(suffix == null || suffixText == null, 'Only one of suffix or suffixText can be accepted.');
108108

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;
136136

137137
/// {@template text-input-label}
138138
/// The label displayed above the input.

0 commit comments

Comments
 (0)