Skip to content

Commit 893701d

Browse files
fix: apply lint fixes
1 parent 0470bf0 commit 893701d

9 files changed

+10
-10
lines changed

example/lib/main.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import 'sources/signup_form.dart';
1515
void main() => runApp(const MyApp());
1616

1717
class MyApp extends StatelessWidget {
18-
const MyApp({Key? key}) : super(key: key);
18+
const MyApp({super.key});
1919

2020
@override
2121
Widget build(BuildContext context) {
@@ -37,7 +37,7 @@ class MyApp extends StatelessWidget {
3737
}
3838

3939
class _HomePage extends StatelessWidget {
40-
const _HomePage({Key? key}) : super(key: key);
40+
const _HomePage();
4141

4242
@override
4343
Widget build(BuildContext context) {

example/lib/sources/complete_form.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:form_builder_validators/form_builder_validators.dart';
44
import 'package:intl/intl.dart';
55

66
class CompleteForm extends StatefulWidget {
7-
const CompleteForm({Key? key}) : super(key: key);
7+
const CompleteForm({super.key});
88

99
@override
1010
State<CompleteForm> createState() {

example/lib/sources/conditional_fields.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart';
33
import 'package:form_builder_validators/form_builder_validators.dart';
44

55
class ConditionalFields extends StatefulWidget {
6-
const ConditionalFields({Key? key}) : super(key: key);
6+
const ConditionalFields({super.key});
77

88
@override
99
State<ConditionalFields> createState() => _ConditionalFieldsState();

example/lib/sources/custom_fields.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_form_builder/flutter_form_builder.dart';
33

44
class CustomFields extends StatefulWidget {
5-
const CustomFields({Key? key}) : super(key: key);
5+
const CustomFields({super.key});
66

77
@override
88
State<CustomFields> createState() => _CustomFieldsState();

example/lib/sources/decorated_radio_checkbox.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart';
33

44
/// Demonstrates the use of itemDecorators to wrap a box around selection items
55
class DecoratedRadioCheckbox extends StatefulWidget {
6-
const DecoratedRadioCheckbox({Key? key}) : super(key: key);
6+
const DecoratedRadioCheckbox({super.key});
77

88
@override
99
State<DecoratedRadioCheckbox> createState() => _DecoratedRadioCheckboxState();

example/lib/sources/dynamic_fields.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:form_builder_validators/form_builder_validators.dart';
77
/// fields that can be added to this widget. For the purposes of the widget, it
88
/// is more than sufficient.
99
class DynamicFields extends StatefulWidget {
10-
const DynamicFields({Key? key}) : super(key: key);
10+
const DynamicFields({super.key});
1111

1212
@override
1313
State<DynamicFields> createState() => _DynamicFieldsState();

example/lib/sources/grouped_radio_checkbox.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart';
33
import 'package:form_builder_validators/form_builder_validators.dart';
44

55
class GroupedRadioCheckbox extends StatefulWidget {
6-
const GroupedRadioCheckbox({Key? key}) : super(key: key);
6+
const GroupedRadioCheckbox({super.key});
77

88
@override
99
State<GroupedRadioCheckbox> createState() {

example/lib/sources/related_fields.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
22
import 'package:flutter_form_builder/flutter_form_builder.dart';
33

44
class RelatedFields extends StatefulWidget {
5-
const RelatedFields({Key? key}) : super(key: key);
5+
const RelatedFields({super.key});
66

77
@override
88
State<RelatedFields> createState() => _RelatedFieldsState();

example/lib/sources/signup_form.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart';
33
import 'package:form_builder_validators/form_builder_validators.dart';
44

55
class SignupForm extends StatefulWidget {
6-
const SignupForm({Key? key}) : super(key: key);
6+
const SignupForm({super.key});
77

88
@override
99
State<SignupForm> createState() => _SignupFormState();

0 commit comments

Comments
 (0)