Skip to content

Commit

Permalink
linter update
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Apr 27, 2024
1 parent 50ec7ad commit 4123da5
Show file tree
Hide file tree
Showing 265 changed files with 867 additions and 1,362 deletions.
2 changes: 1 addition & 1 deletion packages/reactive_advanced_switch/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void main() {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

FormGroup buildForm() => fb.group({
'switch': FormControl<bool>(value: false),
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_advanced_switch/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.2
flutter_lints: ^3.0.2

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ class ReactiveAdvancedSwitch<T> extends ReactiveFormField<T, bool> {
/// For documentation about the various parameters, see the [AdvancedSwitch] class
/// and [AdvancedSwitch], the constructor.
ReactiveAdvancedSwitch({
Key? key,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, bool>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.key,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

////////////////////////////////////////////////////////////////////////////
InputDecoration? decoration = const InputDecoration(),
Expand All @@ -98,12 +98,6 @@ class ReactiveAdvancedSwitch<T> extends ReactiveFormField<T, bool> {
double height = 30.0,
Widget? thumb,
}) : super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
final state = field as _ReactiveAdvancedSwitchState;
final InputDecoration effectiveDecoration = (decoration ??
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_advanced_switch/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.2
flutter_lints: ^3.0.2

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void main() {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

FormGroup buildForm() => fb.group({
'rolling': FormControl<int>(value: 2),
Expand Down
8 changes: 4 additions & 4 deletions packages/reactive_animated_toggle_switch/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
url: "https://pub.dev"
source: hosted
version: "2.0.3"
version: "3.0.2"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -119,10 +119,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "3.0.0"
matcher:
dependency: transitive
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dev_dependencies:
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.2
flutter_lints: ^3.0.2

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class ReactiveAnimatedToggleSwitchCustom<T, V> extends ReactiveFormField<T, V> {
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchCustom(
{Key? key,
{super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -127,12 +127,6 @@ class ReactiveAnimatedToggleSwitchCustom<T, V> extends ReactiveFormField<T, V> {
double selectedIconOpacity = 1.0,
AnimationType iconAnimationType = AnimationType.onSelected})
: super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.custom(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class ReactiveAnimatedToggleSwitchCustomByHeight<T, V>
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchCustomByHeight(
{Key? key,
{super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -128,12 +128,6 @@ class ReactiveAnimatedToggleSwitchCustomByHeight<T, V>
double selectedIconOpacity = 1.0,
AnimationType iconAnimationType = AnimationType.onSelected})
: super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.customByHeight(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class ReactiveAnimatedToggleSwitchDual<T, V> extends ReactiveFormField<T, V> {
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchDual({
Key? key,
super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required V first,
Expand Down Expand Up @@ -122,12 +122,6 @@ class ReactiveAnimatedToggleSwitchDual<T, V> extends ReactiveFormField<T, V> {
Curve inactiveOpacityCurve = Curves.easeInOut,
Duration inactiveOpacityDuration = const Duration(milliseconds: 350),
}) : super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.dual(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ class ReactiveAnimatedToggleSwitchRolling<T, V>
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchRolling({
Key? key,
super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -149,12 +149,6 @@ class ReactiveAnimatedToggleSwitchRolling<T, V>
const ForegroundIndicatorTransition.rolling(),
double indicatorIconScale = 1.0,
}) : super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.rolling(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class ReactiveAnimatedToggleSwitchRollingByHeight<T, V>
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchRollingByHeight({
Key? key,
super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -128,12 +128,6 @@ class ReactiveAnimatedToggleSwitchRollingByHeight<T, V>
const ForegroundIndicatorTransition.rolling(),
double indicatorIconScale = 1.0,
}) : super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.rollingByHeight(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ class ReactiveAnimatedToggleSwitchSizeByHeight<T, V>
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchSizeByHeight(
{Key? key,
{super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -132,12 +132,6 @@ class ReactiveAnimatedToggleSwitchSizeByHeight<T, V>
double selectedIconOpacity = 1.0,
AnimationType iconAnimationType = AnimationType.onSelected})
: super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.sizeByHeight(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class ReactiveAnimatedToggleSwitchSize<T, V> extends ReactiveFormField<T, V> {
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveAnimatedToggleSwitchSize(
{Key? key,
{super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -131,12 +131,6 @@ class ReactiveAnimatedToggleSwitchSize<T, V> extends ReactiveFormField<T, V> {
double selectedIconOpacity = 1.0,
AnimationType iconAnimationType = AnimationType.onSelected})
: super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return AnimatedToggleSwitch<V>.size(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ class ReactiveCustomAnimatedToggleSwitch<T, V> extends ReactiveFormField<T, V> {
/// For documentation about the various parameters, see the [AnimatedToggleSwitch] class
/// and [AnimatedToggleSwitch], the constructor.
ReactiveCustomAnimatedToggleSwitch({
Key? key,
super.key,
Key? widgetKey,
String? formControlName,
FormControl<T>? formControl,
Map<String, ValidationMessageFunction>? validationMessages,
ControlValueAccessor<T, V>? valueAccessor,
ShowErrorsFunction<T>? showErrors,
super.formControlName,
super.formControl,
super.validationMessages,
super.valueAccessor,
super.showErrors,

//////////////////////////////////////////////////////////////////////////
required List<V> values,
Expand Down Expand Up @@ -115,12 +115,6 @@ class ReactiveCustomAnimatedToggleSwitch<T, V> extends ReactiveFormField<T, V> {
CustomIndicatorBuilder<V>? foregroundIndicatorBuilder,
CustomIndicatorBuilder<V>? backgroundIndicatorBuilder,
}) : super(
key: key,
formControl: formControl,
formControlName: formControlName,
valueAccessor: valueAccessor,
validationMessages: validationMessages,
showErrors: showErrors,
builder: (field) {
return CustomAnimatedToggleSwitch<V>(
key: widgetKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Widget _defaultLoadingIconBuilder(BuildContext context,
const _MyLoading();

class _MyLoading extends StatelessWidget {
const _MyLoading({Key? key}) : super(key: key);
const _MyLoading();

@override
Widget build(BuildContext context) {
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_animated_toggle_switch/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.2
flutter_lints: ^3.0.2

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_awesome_select/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void main() {
}

class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});

FormGroup buildForm() => fb.group({
'input': FormControl<String>(
Expand Down
Loading

0 comments on commit 4123da5

Please sign in to comment.