Skip to content

Commit e27c4d6

Browse files
committed
Dart Fix v3.0.1
1 parent a1e5018 commit e27c4d6

File tree

8 files changed

+32
-55
lines changed

8 files changed

+32
-55
lines changed

lib/max_width_box.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ class MaxWidthBox extends StatelessWidget {
1313
final Widget? background;
1414

1515
const MaxWidthBox(
16-
{Key? key,
16+
{super.key,
1717
required this.maxWidth,
1818
required this.child,
1919
this.background,
20-
this.alignment = Alignment.topCenter})
21-
: super(key: key);
20+
this.alignment = Alignment.topCenter});
2221

2322
@override
2423
Widget build(BuildContext context) {

lib/responsive_breakpoints.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class ResponsiveBreakpoints extends StatefulWidget {
5555

5656
/// A wrapper widget that makes child widgets responsive.
5757
const ResponsiveBreakpoints({
58-
Key? key,
58+
super.key,
5959
required this.child,
6060
required this.breakpoints,
6161
this.breakpointsLandscape,
6262
this.landscapePlatforms,
6363
this.useShortestSide = false,
6464
this.debugLog = false,
65-
}) : super(key: key);
65+
});
6666

6767
@override
6868
ResponsiveBreakpointsState createState() => ResponsiveBreakpointsState();
@@ -412,8 +412,7 @@ class InheritedResponsiveBreakpoints extends InheritedWidget {
412412
///
413413
/// The [data] and [child] arguments must not be null.
414414
const InheritedResponsiveBreakpoints(
415-
{Key? key, required this.data, required Widget child})
416-
: super(key: key, child: child);
415+
{super.key, required this.data, required super.child});
417416

418417
@override
419418
bool updateShouldNotify(InheritedResponsiveBreakpoints oldWidget) =>

lib/responsive_grid.dart

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ResponsiveGridView extends StatelessWidget {
4040
final String? restorationId;
4141

4242
const ResponsiveGridView.builder({
43-
Key? key,
43+
super.key,
4444
this.scrollDirection = Axis.vertical,
4545
this.reverse = false,
4646
this.controller,
@@ -62,7 +62,7 @@ class ResponsiveGridView extends StatelessWidget {
6262
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
6363
this.clipBehavior = Clip.hardEdge,
6464
this.restorationId,
65-
}) : super(key: key);
65+
});
6666

6767
@override
6868
Widget build(BuildContext context) {
@@ -201,39 +201,24 @@ class _ResponsiveGridViewLayout extends BoxScrollView {
201201
final int? itemCount;
202202

203203
const _ResponsiveGridViewLayout({
204-
Key? key,
205-
Axis scrollDirection = Axis.vertical,
206-
bool reverse = false,
207-
ScrollController? controller,
208-
bool? primary,
209-
ScrollPhysics? physics,
210-
bool shrinkWrap = false,
211-
EdgeInsetsGeometry? padding,
204+
super.scrollDirection,
205+
super.reverse,
206+
super.controller,
207+
super.primary,
208+
super.physics,
209+
super.shrinkWrap,
210+
super.padding,
212211
required this.gridDelegate,
213212
required this.childrenDelegate,
214213
this.itemCount,
215-
double? cacheExtent,
214+
super.cacheExtent,
216215
int? semanticChildCount,
217-
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
218-
ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
219-
ScrollViewKeyboardDismissBehavior.manual,
220-
String? restorationId,
221-
Clip clipBehavior = Clip.hardEdge,
216+
super.dragStartBehavior,
217+
super.keyboardDismissBehavior,
218+
super.restorationId,
219+
super.clipBehavior,
222220
}) : super(
223-
key: key,
224-
scrollDirection: scrollDirection,
225-
reverse: reverse,
226-
controller: controller,
227-
primary: primary,
228-
physics: physics,
229-
shrinkWrap: shrinkWrap,
230-
padding: padding,
231-
cacheExtent: cacheExtent,
232221
semanticChildCount: semanticChildCount ?? itemCount,
233-
dragStartBehavior: dragStartBehavior,
234-
keyboardDismissBehavior: keyboardDismissBehavior,
235-
restorationId: restorationId,
236-
clipBehavior: clipBehavior,
237222
);
238223

239224
@override

lib/responsive_row_column.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ResponsiveRowColumn extends StatelessWidget {
4646
get isColumn => layout == ResponsiveRowColumnType.COLUMN;
4747

4848
const ResponsiveRowColumn(
49-
{Key? key,
49+
{super.key,
5050
this.children = const [],
5151
required this.layout,
5252
this.rowMainAxisAlignment = MainAxisAlignment.start,
@@ -64,8 +64,7 @@ class ResponsiveRowColumn extends StatelessWidget {
6464
this.rowSpacing,
6565
this.columnSpacing,
6666
this.rowPadding = EdgeInsets.zero,
67-
this.columnPadding = EdgeInsets.zero})
68-
: super(key: key);
67+
this.columnPadding = EdgeInsets.zero});
6968

7069
@override
7170
Widget build(BuildContext context) {
@@ -153,16 +152,15 @@ class ResponsiveRowColumnItem extends StatelessWidget {
153152
final FlexFit? columnFit;
154153

155154
const ResponsiveRowColumnItem(
156-
{Key? key,
155+
{super.key,
157156
required this.child,
158157
this.rowOrder = 1073741823,
159158
this.columnOrder = 1073741823,
160159
this.rowColumn = true,
161160
this.rowFlex,
162161
this.columnFlex,
163162
this.rowFit,
164-
this.columnFit})
165-
: super(key: key);
163+
this.columnFit});
166164

167165
@override
168166
Widget build(BuildContext context) {

lib/responsive_scaled_box.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ class ResponsiveScaledBox extends StatelessWidget {
88
final bool autoCalculateMediaQueryData;
99

1010
const ResponsiveScaledBox(
11-
{Key? key,
11+
{super.key,
1212
required this.width,
1313
required this.child,
14-
this.autoCalculateMediaQueryData = true})
15-
: super(key: key);
14+
this.autoCalculateMediaQueryData = true});
1615

1716
@override
1817
Widget build(BuildContext context) {

lib/responsive_value.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class ResponsiveVisibility extends StatelessWidget {
242242
final bool maintainInteractivity;
243243

244244
const ResponsiveVisibility({
245-
Key? key,
245+
super.key,
246246
required this.child,
247247
this.visible = true,
248248
this.visibleConditions = const [],
@@ -253,7 +253,7 @@ class ResponsiveVisibility extends StatelessWidget {
253253
this.maintainSize = false,
254254
this.maintainSemantics = false,
255255
this.maintainInteractivity = false,
256-
}) : super(key: key);
256+
});
257257

258258
@override
259259
Widget build(BuildContext context) {
@@ -288,11 +288,10 @@ class ResponsiveConstraints extends StatelessWidget {
288288
final List<Condition> conditionalConstraints;
289289

290290
const ResponsiveConstraints(
291-
{Key? key,
291+
{super.key,
292292
required this.child,
293293
this.constraint,
294-
this.conditionalConstraints = const []})
295-
: super(key: key);
294+
this.conditionalConstraints = const []});
296295

297296
@override
298297
Widget build(BuildContext context) {

lib/utils/scroll_behavior.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ class BouncingScrollWrapper extends StatelessWidget {
2626
final bool dragWithMouse;
2727

2828
const BouncingScrollWrapper(
29-
{Key? key, required this.child, this.dragWithMouse = false})
30-
: super(key: key);
29+
{super.key, required this.child, this.dragWithMouse = false});
3130

3231
static Widget builder(BuildContext context, Widget child,
3332
{bool dragWithMouse = false}) {
@@ -69,8 +68,7 @@ class ClampingScrollWrapper extends StatelessWidget {
6968
final bool dragWithMouse;
7069

7170
const ClampingScrollWrapper(
72-
{Key? key, required this.child, this.dragWithMouse = false})
73-
: super(key: key);
71+
{super.key, required this.child, this.dragWithMouse = false});
7472

7573
static Widget builder(BuildContext context, Widget child,
7674
{bool dragWithMouse = false}) {

0 commit comments

Comments
 (0)