From 893701d727f8f8b21f7bb305527ac47ead22217e Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Sat, 25 May 2024 10:31:34 +0200 Subject: [PATCH] fix: apply lint fixes --- example/lib/main.dart | 4 ++-- example/lib/sources/complete_form.dart | 2 +- example/lib/sources/conditional_fields.dart | 2 +- example/lib/sources/custom_fields.dart | 2 +- example/lib/sources/decorated_radio_checkbox.dart | 2 +- example/lib/sources/dynamic_fields.dart | 2 +- example/lib/sources/grouped_radio_checkbox.dart | 2 +- example/lib/sources/related_fields.dart | 2 +- example/lib/sources/signup_form.dart | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index c22b2aa9f..a4b17b63e 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -15,7 +15,7 @@ import 'sources/signup_form.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { - const MyApp({Key? key}) : super(key: key); + const MyApp({super.key}); @override Widget build(BuildContext context) { @@ -37,7 +37,7 @@ class MyApp extends StatelessWidget { } class _HomePage extends StatelessWidget { - const _HomePage({Key? key}) : super(key: key); + const _HomePage(); @override Widget build(BuildContext context) { diff --git a/example/lib/sources/complete_form.dart b/example/lib/sources/complete_form.dart index 3c41c7ad9..456ab5fc5 100644 --- a/example/lib/sources/complete_form.dart +++ b/example/lib/sources/complete_form.dart @@ -4,7 +4,7 @@ import 'package:form_builder_validators/form_builder_validators.dart'; import 'package:intl/intl.dart'; class CompleteForm extends StatefulWidget { - const CompleteForm({Key? key}) : super(key: key); + const CompleteForm({super.key}); @override State createState() { diff --git a/example/lib/sources/conditional_fields.dart b/example/lib/sources/conditional_fields.dart index d221f30b1..291289b2d 100644 --- a/example/lib/sources/conditional_fields.dart +++ b/example/lib/sources/conditional_fields.dart @@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart'; import 'package:form_builder_validators/form_builder_validators.dart'; class ConditionalFields extends StatefulWidget { - const ConditionalFields({Key? key}) : super(key: key); + const ConditionalFields({super.key}); @override State createState() => _ConditionalFieldsState(); diff --git a/example/lib/sources/custom_fields.dart b/example/lib/sources/custom_fields.dart index 92a74fb84..c73050e9f 100644 --- a/example/lib/sources/custom_fields.dart +++ b/example/lib/sources/custom_fields.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_form_builder/flutter_form_builder.dart'; class CustomFields extends StatefulWidget { - const CustomFields({Key? key}) : super(key: key); + const CustomFields({super.key}); @override State createState() => _CustomFieldsState(); diff --git a/example/lib/sources/decorated_radio_checkbox.dart b/example/lib/sources/decorated_radio_checkbox.dart index ecab94c34..e17bd3d0c 100644 --- a/example/lib/sources/decorated_radio_checkbox.dart +++ b/example/lib/sources/decorated_radio_checkbox.dart @@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart'; /// Demonstrates the use of itemDecorators to wrap a box around selection items class DecoratedRadioCheckbox extends StatefulWidget { - const DecoratedRadioCheckbox({Key? key}) : super(key: key); + const DecoratedRadioCheckbox({super.key}); @override State createState() => _DecoratedRadioCheckboxState(); diff --git a/example/lib/sources/dynamic_fields.dart b/example/lib/sources/dynamic_fields.dart index 8a188fc0e..d92a365f6 100644 --- a/example/lib/sources/dynamic_fields.dart +++ b/example/lib/sources/dynamic_fields.dart @@ -7,7 +7,7 @@ import 'package:form_builder_validators/form_builder_validators.dart'; /// fields that can be added to this widget. For the purposes of the widget, it /// is more than sufficient. class DynamicFields extends StatefulWidget { - const DynamicFields({Key? key}) : super(key: key); + const DynamicFields({super.key}); @override State createState() => _DynamicFieldsState(); diff --git a/example/lib/sources/grouped_radio_checkbox.dart b/example/lib/sources/grouped_radio_checkbox.dart index d6f95a0b3..ea380165b 100644 --- a/example/lib/sources/grouped_radio_checkbox.dart +++ b/example/lib/sources/grouped_radio_checkbox.dart @@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart'; import 'package:form_builder_validators/form_builder_validators.dart'; class GroupedRadioCheckbox extends StatefulWidget { - const GroupedRadioCheckbox({Key? key}) : super(key: key); + const GroupedRadioCheckbox({super.key}); @override State createState() { diff --git a/example/lib/sources/related_fields.dart b/example/lib/sources/related_fields.dart index de982054c..691767fab 100644 --- a/example/lib/sources/related_fields.dart +++ b/example/lib/sources/related_fields.dart @@ -2,7 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_form_builder/flutter_form_builder.dart'; class RelatedFields extends StatefulWidget { - const RelatedFields({Key? key}) : super(key: key); + const RelatedFields({super.key}); @override State createState() => _RelatedFieldsState(); diff --git a/example/lib/sources/signup_form.dart b/example/lib/sources/signup_form.dart index 500d1b7dd..4f287c7d5 100644 --- a/example/lib/sources/signup_form.dart +++ b/example/lib/sources/signup_form.dart @@ -3,7 +3,7 @@ import 'package:flutter_form_builder/flutter_form_builder.dart'; import 'package:form_builder_validators/form_builder_validators.dart'; class SignupForm extends StatefulWidget { - const SignupForm({Key? key}) : super(key: key); + const SignupForm({super.key}); @override State createState() => _SignupFormState();