Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade flutter_lints #28

Merged
merged 5 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/lib/complex_example/alpha_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class AlphaPickerPage extends StatefulWidget {
const AlphaPickerPage({Key? key}) : super(key: key);

@override
_AlphaPickerPageState createState() => _AlphaPickerPageState();
State<AlphaPickerPage> createState() => _AlphaPickerPageState();
}

class _AlphaPickerPageState extends State<AlphaPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/color_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class ColorPickerPage extends StatefulWidget {
const ColorPickerPage({Key? key}) : super(key: key);

@override
_ColorPickerPageState createState() => _ColorPickerPageState();
State<ColorPickerPage> createState() => _ColorPickerPageState();
}

class _ColorPickerPageState extends State<ColorPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/hex_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class HexPickerPage extends StatefulWidget {
const HexPickerPage({Key? key}) : super(key: key);

@override
_HexPickerPageState createState() => _HexPickerPageState();
State<HexPickerPage> createState() => _HexPickerPageState();
}

class _HexPickerPageState extends State<HexPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/hsv_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class HSVPickerPage extends StatefulWidget {
const HSVPickerPage({Key? key}) : super(key: key);

@override
_HSVPickerPageState createState() => _HSVPickerPageState();
State<HSVPickerPage> createState() => _HSVPickerPageState();
}

class _HSVPickerPageState extends State<HSVPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MainPage extends StatefulWidget {
const MainPage({Key? key}) : super(key: key);

@override
_MainPageState createState() => _MainPageState();
State<MainPage> createState() => _MainPageState();
}

class _MainPageState extends State<MainPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/palette_hue_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PaletteHuePickerPage extends StatefulWidget {
const PaletteHuePickerPage({Key? key}) : super(key: key);

@override
_PaletteHuePickerPageState createState() => _PaletteHuePickerPageState();
State<PaletteHuePickerPage> createState() => _PaletteHuePickerPageState();
}

class _PaletteHuePickerPageState extends State<PaletteHuePickerPage> {
Expand Down
10 changes: 2 additions & 8 deletions example/lib/complex_example/palette_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PalettePickerPage extends StatefulWidget {
final List<Color> verticalColors = [Colors.transparent, Colors.black];

@override
_PalettePickerPageState createState() => _PalettePickerPageState();
State<PalettePickerPage> createState() => _PalettePickerPageState();
}

class _PalettePickerPageState extends State<PalettePickerPage> {
Expand All @@ -34,13 +34,7 @@ class _PalettePickerPageState extends State<PalettePickerPage> {
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text(
'( ' +
((value.dx * 100.0).toInt().toDouble() / 100.0)
.toString() +
' , ' +
((value.dy * 100.0).toInt().toDouble() / 100.0)
.toString() +
' )',
'''( ${(value.dx * 100.0).toInt().toDouble() / 100.0} , ${(value.dy * 100.0).toInt().toDouble() / 100.0} )''',
style: Theme.of(context).textTheme.headlineMedium,
),
const Divider(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PaletteSaturationPickerPage extends StatefulWidget {
const PaletteSaturationPickerPage({Key? key}) : super(key: key);

@override
_PaletteSaturationPickerPageState createState() =>
State<PaletteSaturationPickerPage> createState() =>
_PaletteSaturationPickerPageState();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PaletteValuePickerPage extends StatefulWidget {
const PaletteValuePickerPage({Key? key}) : super(key: key);

@override
_PaletteValuePickerPageState createState() => _PaletteValuePickerPageState();
State<PaletteValuePickerPage> createState() => _PaletteValuePickerPageState();
}

class _PaletteValuePickerPageState extends State<PaletteValuePickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/rgb_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RGBPickerPage extends StatefulWidget {
const RGBPickerPage({Key? key}) : super(key: key);

@override
_RGBPickerPageState createState() => _RGBPickerPageState();
State<RGBPickerPage> createState() => _RGBPickerPageState();
}

class _RGBPickerPageState extends State<RGBPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/slider_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class SliderPickerPage extends StatefulWidget {
const SliderPickerPage({Key? key}) : super(key: key);

@override
_SliderPickerPageState createState() => _SliderPickerPageState();
State<SliderPickerPage> createState() => _SliderPickerPageState();
}

class _SliderPickerPageState extends State<SliderPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/swatches_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SwatchesPickerPage extends StatefulWidget {
const SwatchesPickerPage({Key? key}) : super(key: key);

@override
_SwatchesPickerPageState createState() => _SwatchesPickerPageState();
State<SwatchesPickerPage> createState() => _SwatchesPickerPageState();
}

class _SwatchesPickerPageState extends State<SwatchesPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/complex_example/wheel_picker_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class WheelPickerPage extends StatefulWidget {
const WheelPickerPage({Key? key}) : super(key: key);

@override
_WheelPickerPageState createState() => _WheelPickerPageState();
State<WheelPickerPage> createState() => _WheelPickerPageState();
}

class _WheelPickerPageState extends State<WheelPickerPage> {
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
path: ../

dev_dependencies:
flutter_lints: ^1.0.4
flutter_lints: ^2.0.0

flutter:
uses-material-design: true
Expand Down
2 changes: 1 addition & 1 deletion lib/src/color_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ColorPicker extends StatefulWidget {
final PickerOrientation pickerOrientation;

@override
_ColorPickerState createState() => _ColorPickerState();
State<ColorPicker> createState() => _ColorPickerState();
}

class _ColorPickerState extends State<ColorPicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/hsv_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class HSVPicker extends StatefulWidget {
final ValueChanged<HSVColor> onChanged;

@override
_HSVPickerState createState() => _HSVPickerState();
State<HSVPicker> createState() => _HSVPickerState();
}

class _HSVPickerState extends State<HSVPicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/palette_hue_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PaletteHuePicker extends StatefulWidget {
final BorderRadius? paletteBorderRadius;

@override
_PaletteHuePickerState createState() => _PaletteHuePickerState();
State<PaletteHuePicker> createState() => _PaletteHuePickerState();
}

class _PaletteHuePickerState extends State<PaletteHuePicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/palette_saturation_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PaletteSaturationPicker extends StatefulWidget {
final ValueChanged<HSVColor> onChanged;

@override
_PaletteSaturationPickerState createState() =>
State<PaletteSaturationPicker> createState() =>
_PaletteSaturationPickerState();
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/palette_value_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PaletteValuePicker extends StatefulWidget {
final ValueChanged<HSVColor> onChanged;

@override
_PaletteValuePickerState createState() => _PaletteValuePickerState();
State<PaletteValuePicker> createState() => _PaletteValuePickerState();
}

class _PaletteValuePickerState extends State<PaletteValuePicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/rgb_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RGBPicker extends StatefulWidget {
final ValueChanged<Color> onChanged;

@override
_RGBPickerState createState() => _RGBPickerState();
State<RGBPicker> createState() => _RGBPickerState();
}

class _RGBPickerState extends State<RGBPicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/swatches_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SwatchesPicker extends StatefulWidget {
final ValueChanged<Color> onChanged;

@override
_SwatchesPickerState createState() => _SwatchesPickerState();
State<SwatchesPicker> createState() => _SwatchesPickerState();
}

class _SwatchesPickerState extends State<SwatchesPicker>
Expand Down
2 changes: 1 addition & 1 deletion lib/src/pickers/wheel_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class WheelPicker extends StatefulWidget {
final ValueChanged<HSVColor> onChanged;

@override
_WheelPickerState createState() => _WheelPickerState();
State<WheelPicker> createState() => _WheelPickerState();
}

class _WheelPickerState extends State<WheelPicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/hex_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HexPicker extends StatefulWidget {
final TextEditingController _controller;

@override
_HexPickerState createState() => _HexPickerState();
State<HexPicker> createState() => _HexPickerState();
}

class _HexPickerState extends State<HexPicker> {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/palette_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PalettePicker extends StatefulWidget {
final List<Color> topBottomColors;

@override
_PalettePickerState createState() => _PalettePickerState();
State<PalettePicker> createState() => _PalettePickerState();
}

class _PalettePickerState extends State<PalettePicker> {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ environment:
flutter: '>=2.10.0'

dev_dependencies:
flutter_lints: ^1.0.4
flutter_lints: ^2.0.0
flutter_test:
sdk: flutter
Loading