Skip to content

Commit 95926d3

Browse files
committed
Code formatting for example
1 parent 90f8767 commit 95926d3

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MyApp extends StatelessWidget {
2727
Locale('en', ''),
2828
Locale('es', ''),
2929
Locale('fr', ''),
30-
Locale('ja', ''),
30+
Locale('ja', ''),
3131
Locale('pt', ''),
3232
],
3333
home: HomePage(),

example/lib/sources/complete_form.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ class CompleteFormState extends State<CompleteForm> {
196196
),
197197
FormBuilderRangeSlider(
198198
name: 'range_slider',
199-
validator: FormBuilderValidators.compose(
200-
[FormBuilderValidators.min(context, 6)]),
199+
// validator: FormBuilderValidators.compose([FormBuilderValidators.min(context, 6)]),
201200
onChanged: _onChanged,
202201
min: 0.0,
203202
max: 100.0,
@@ -425,10 +424,8 @@ class CompleteFormState extends State<CompleteForm> {
425424
onChanged: _onChanged,
426425
priorityListByIsoCode: ['KE'],
427426
validator: FormBuilderValidators.compose([
428-
FormBuilderValidators.numeric(context,
429-
errorText: 'Invalid phone number'),
430-
FormBuilderValidators.required(context,
431-
errorText: 'This field required'),
427+
FormBuilderValidators.numeric(context),
428+
FormBuilderValidators.required(context),
432429
]),
433430
),
434431
const SizedBox(height: 15),

0 commit comments

Comments
 (0)