File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
flutter_form_builder/example/lib
form_builder_phone_field/lib/src Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ class HomePage extends StatelessWidget {
10
10
@override
11
11
Widget build (BuildContext context) {
12
12
return Scaffold (
13
- appBar: AppBar (
14
- title: const Text ('Flutter Form Builder' )
15
- ),
13
+ appBar: AppBar (title: const Text ('Flutter Form Builder' )),
16
14
body: ListView (
17
15
children: < Widget > [
18
16
ListTile (
Original file line number Diff line number Diff line change @@ -310,9 +310,8 @@ class FormBuilderSearchableDropdown<T> extends FormBuilderField<T> {
310
310
dropdownBuilderSupportsNullItem:
311
311
dropdownBuilderSupportsNullItem,
312
312
dropDownButton: dropDownButton,
313
- dropdownSearchDecoration: InputDecoration .collapsed (
314
- hintText: hint,
315
- ),
313
+ dropdownSearchDecoration:
314
+ InputDecoration .collapsed (hintText: hint),
316
315
emptyBuilder: emptyBuilder,
317
316
errorBuilder: errorBuilder,
318
317
filterFn: filterFn,
Original file line number Diff line number Diff line change @@ -319,11 +319,11 @@ class _FormBuilderPhoneFieldState
319
319
if (initialValue != null && initialValue! .isNotEmpty) {
320
320
try {
321
321
final parseResult = await PhoneNumberUtil ().parse (initialValue! );
322
- setState (() {
323
- _selectedDialogCountry = CountryPickerUtils . getCountryByPhoneCode (
324
- parseResult.countryCode);
325
- });
326
- _effectiveController.text = parseResult.nationalNumber;
322
+ setState (() {
323
+ _selectedDialogCountry =
324
+ CountryPickerUtils . getCountryByPhoneCode ( parseResult.countryCode);
325
+ });
326
+ _effectiveController.text = parseResult.nationalNumber;
327
327
} catch (error) {
328
328
_effectiveController.text = initialValue! .replaceFirst ('+' , '' );
329
329
}
You can’t perform that action at this time.
0 commit comments