Showing
24 changed files
with
95 additions
and
409 deletions
@@ -33,7 +33,7 @@ typedef WidgetWithChildBuilder = Widget Function( | @@ -33,7 +33,7 @@ typedef WidgetWithChildBuilder = Widget Function( | ||
33 | class ModalBottomSheet extends StatefulWidget { | 33 | class ModalBottomSheet extends StatefulWidget { |
34 | /// Creates a bottom sheet. | 34 | /// Creates a bottom sheet. |
35 | const ModalBottomSheet({ | 35 | const ModalBottomSheet({ |
36 | - Key? key, | 36 | + super.key, |
37 | required this.animationController, | 37 | required this.animationController, |
38 | this.animationCurve, | 38 | this.animationCurve, |
39 | this.enableDrag = true, | 39 | this.enableDrag = true, |
@@ -48,8 +48,7 @@ class ModalBottomSheet extends StatefulWidget { | @@ -48,8 +48,7 @@ class ModalBottomSheet extends StatefulWidget { | ||
48 | double? closeProgressThreshold, | 48 | double? closeProgressThreshold, |
49 | this.willPopThreshold = _willPopThreshold, | 49 | this.willPopThreshold = _willPopThreshold, |
50 | }) : closeProgressThreshold = | 50 | }) : closeProgressThreshold = |
51 | - closeProgressThreshold ?? _closeProgressThreshold, | ||
52 | - super(key: key); | 51 | + closeProgressThreshold ?? _closeProgressThreshold; |
53 | 52 | ||
54 | /// The closeProgressThreshold parameter | 53 | /// The closeProgressThreshold parameter |
55 | /// specifies when the bottom sheet will be dismissed when user drags it. | 54 | /// specifies when the bottom sheet will be dismissed when user drags it. |
@@ -8,7 +8,7 @@ const Duration _bottomSheetDuration = Duration(milliseconds: 400); | @@ -8,7 +8,7 @@ const Duration _bottomSheetDuration = Duration(milliseconds: 400); | ||
8 | 8 | ||
9 | class _ModalBottomSheet<T> extends StatefulWidget { | 9 | class _ModalBottomSheet<T> extends StatefulWidget { |
10 | const _ModalBottomSheet({ | 10 | const _ModalBottomSheet({ |
11 | - Key? key, | 11 | + super.key, |
12 | this.closeProgressThreshold, | 12 | this.closeProgressThreshold, |
13 | required this.route, | 13 | required this.route, |
14 | this.secondAnimationController, | 14 | this.secondAnimationController, |
@@ -16,7 +16,7 @@ class _ModalBottomSheet<T> extends StatefulWidget { | @@ -16,7 +16,7 @@ class _ModalBottomSheet<T> extends StatefulWidget { | ||
16 | this.expanded = false, | 16 | this.expanded = false, |
17 | this.enableDrag = true, | 17 | this.enableDrag = true, |
18 | this.animationCurve, | 18 | this.animationCurve, |
19 | - }) : super(key: key); | 19 | + }); |
20 | 20 | ||
21 | final double? closeProgressThreshold; | 21 | final double? closeProgressThreshold; |
22 | final ModalSheetRoute<T> route; | 22 | final ModalSheetRoute<T> route; |
@@ -137,9 +137,8 @@ class ModalSheetRoute<T> extends PageRoute<T> { | @@ -137,9 +137,8 @@ class ModalSheetRoute<T> extends PageRoute<T> { | ||
137 | this.bounce = false, | 137 | this.bounce = false, |
138 | this.animationCurve, | 138 | this.animationCurve, |
139 | Duration? duration, | 139 | Duration? duration, |
140 | - RouteSettings? settings, | ||
141 | - }) : duration = duration ?? _bottomSheetDuration, | ||
142 | - super(settings: settings); | 140 | + super.settings, |
141 | + }) : duration = duration ?? _bottomSheetDuration; | ||
143 | 142 | ||
144 | final double? closeProgressThreshold; | 143 | final double? closeProgressThreshold; |
145 | final WidgetWithChildBuilder? containerBuilder; | 144 | final WidgetWithChildBuilder? containerBuilder; |
@@ -16,7 +16,7 @@ class BarBottomSheet extends StatelessWidget { | @@ -16,7 +16,7 @@ class BarBottomSheet extends StatelessWidget { | ||
16 | final SystemUiOverlayStyle? overlayStyle; | 16 | final SystemUiOverlayStyle? overlayStyle; |
17 | 17 | ||
18 | const BarBottomSheet({ | 18 | const BarBottomSheet({ |
19 | - Key? key, | 19 | + super.key, |
20 | required this.child, | 20 | required this.child, |
21 | this.control, | 21 | this.control, |
22 | this.clipBehavior, | 22 | this.clipBehavior, |
@@ -24,7 +24,7 @@ class BarBottomSheet extends StatelessWidget { | @@ -24,7 +24,7 @@ class BarBottomSheet extends StatelessWidget { | ||
24 | this.backgroundColor, | 24 | this.backgroundColor, |
25 | this.elevation, | 25 | this.elevation, |
26 | this.overlayStyle, | 26 | this.overlayStyle, |
27 | - }) : super(key: key); | 27 | + }); |
28 | 28 | ||
29 | @override | 29 | @override |
30 | Widget build(BuildContext context) { | 30 | Widget build(BuildContext context) { |
@@ -51,13 +51,12 @@ class _CupertinoBottomSheetContainer extends StatelessWidget { | @@ -51,13 +51,12 @@ class _CupertinoBottomSheetContainer extends StatelessWidget { | ||
51 | final SystemUiOverlayStyle? overlayStyle; | 51 | final SystemUiOverlayStyle? overlayStyle; |
52 | 52 | ||
53 | const _CupertinoBottomSheetContainer({ | 53 | const _CupertinoBottomSheetContainer({ |
54 | - Key? key, | ||
55 | required this.child, | 54 | required this.child, |
56 | this.backgroundColor, | 55 | this.backgroundColor, |
57 | required this.topRadius, | 56 | required this.topRadius, |
58 | this.overlayStyle, | 57 | this.overlayStyle, |
59 | this.shadow, | 58 | this.shadow, |
60 | - }) : super(key: key); | 59 | + }); |
61 | 60 | ||
62 | @override | 61 | @override |
63 | Widget build(BuildContext context) { | 62 | Widget build(BuildContext context) { |
@@ -178,44 +177,29 @@ class CupertinoModalBottomSheetRoute<T> extends ModalSheetRoute<T> { | @@ -178,44 +177,29 @@ class CupertinoModalBottomSheetRoute<T> extends ModalSheetRoute<T> { | ||
178 | final SystemUiOverlayStyle? overlayStyle; | 177 | final SystemUiOverlayStyle? overlayStyle; |
179 | 178 | ||
180 | CupertinoModalBottomSheetRoute({ | 179 | CupertinoModalBottomSheetRoute({ |
181 | - required WidgetBuilder builder, | ||
182 | - WidgetWithChildBuilder? containerBuilder, | ||
183 | - double? closeProgressThreshold, | ||
184 | - String? barrierLabel, | 180 | + required super.builder, |
181 | + super.containerBuilder, | ||
182 | + super.closeProgressThreshold, | ||
183 | + super.barrierLabel, | ||
185 | double? elevation, | 184 | double? elevation, |
186 | ShapeBorder? shape, | 185 | ShapeBorder? shape, |
187 | Clip? clipBehavior, | 186 | Clip? clipBehavior, |
188 | - AnimationController? secondAnimationController, | ||
189 | - Curve? animationCurve, | ||
190 | - Color? modalBarrierColor, | ||
191 | - bool bounce = true, | ||
192 | - bool isDismissible = true, | ||
193 | - bool enableDrag = true, | ||
194 | - required bool expanded, | ||
195 | - Duration? duration, | ||
196 | - RouteSettings? settings, | ||
197 | - ScrollController? scrollController, | 187 | + super.secondAnimationController, |
188 | + super.animationCurve, | ||
189 | + super.modalBarrierColor, | ||
190 | + super.bounce = true, | ||
191 | + super.isDismissible, | ||
192 | + super.enableDrag, | ||
193 | + required super.expanded, | ||
194 | + super.duration, | ||
195 | + super.settings, | ||
196 | + super.scrollController, | ||
198 | this.boxShadow = _kDefaultBoxShadow, | 197 | this.boxShadow = _kDefaultBoxShadow, |
199 | this.transitionBackgroundColor, | 198 | this.transitionBackgroundColor, |
200 | this.topRadius = _kDefaultTopRadius, | 199 | this.topRadius = _kDefaultTopRadius, |
201 | this.previousRouteAnimationCurve, | 200 | this.previousRouteAnimationCurve, |
202 | this.overlayStyle, | 201 | this.overlayStyle, |
203 | - }) : super( | ||
204 | - closeProgressThreshold: closeProgressThreshold, | ||
205 | - scrollController: scrollController, | ||
206 | - containerBuilder: containerBuilder, | ||
207 | - builder: builder, | ||
208 | - bounce: bounce, | ||
209 | - barrierLabel: barrierLabel, | ||
210 | - secondAnimationController: secondAnimationController, | ||
211 | - modalBarrierColor: modalBarrierColor, | ||
212 | - isDismissible: isDismissible, | ||
213 | - enableDrag: enableDrag, | ||
214 | - expanded: expanded, | ||
215 | - settings: settings, | ||
216 | - animationCurve: animationCurve, | ||
217 | - duration: duration, | ||
218 | - ); | 202 | + }); |
219 | 203 | ||
220 | @override | 204 | @override |
221 | Widget buildTransitions( | 205 | Widget buildTransitions( |
@@ -264,13 +248,12 @@ class _CupertinoModalTransition extends StatelessWidget { | @@ -264,13 +248,12 @@ class _CupertinoModalTransition extends StatelessWidget { | ||
264 | final Widget body; | 248 | final Widget body; |
265 | 249 | ||
266 | const _CupertinoModalTransition({ | 250 | const _CupertinoModalTransition({ |
267 | - Key? key, | ||
268 | required this.secondaryAnimation, | 251 | required this.secondaryAnimation, |
269 | required this.body, | 252 | required this.body, |
270 | required this.topRadius, | 253 | required this.topRadius, |
271 | this.backgroundColor = Colors.black, | 254 | this.backgroundColor = Colors.black, |
272 | this.animationCurve, | 255 | this.animationCurve, |
273 | - }) : super(key: key); | 256 | + }); |
274 | 257 | ||
275 | @override | 258 | @override |
276 | Widget build(BuildContext context) { | 259 | Widget build(BuildContext context) { |
@@ -431,12 +414,12 @@ class CupertinoScaffold extends StatefulWidget { | @@ -431,12 +414,12 @@ class CupertinoScaffold extends StatefulWidget { | ||
431 | final SystemUiOverlayStyle? overlayStyle; | 414 | final SystemUiOverlayStyle? overlayStyle; |
432 | 415 | ||
433 | const CupertinoScaffold({ | 416 | const CupertinoScaffold({ |
434 | - Key? key, | 417 | + super.key, |
435 | required this.body, | 418 | required this.body, |
436 | this.topRadius = _kDefaultTopRadius, | 419 | this.topRadius = _kDefaultTopRadius, |
437 | this.transitionBackgroundColor = Colors.black, | 420 | this.transitionBackgroundColor = Colors.black, |
438 | this.overlayStyle, | 421 | this.overlayStyle, |
439 | - }) : super(key: key); | 422 | + }); |
440 | 423 | ||
441 | @override | 424 | @override |
442 | State<StatefulWidget> createState() => _CupertinoScaffoldState(); | 425 | State<StatefulWidget> createState() => _CupertinoScaffoldState(); |
@@ -10,15 +10,11 @@ class MaterialWithModalsPageRoute<T> extends MaterialPageRoute<T> { | @@ -10,15 +10,11 @@ class MaterialWithModalsPageRoute<T> extends MaterialPageRoute<T> { | ||
10 | /// The values of [builder], [maintainState], and [fullScreenDialog] must not | 10 | /// The values of [builder], [maintainState], and [fullScreenDialog] must not |
11 | /// be null. | 11 | /// be null. |
12 | MaterialWithModalsPageRoute({ | 12 | MaterialWithModalsPageRoute({ |
13 | - required WidgetBuilder builder, | ||
14 | - RouteSettings? settings, | ||
15 | - bool maintainState = true, | ||
16 | - bool fullscreenDialog = false, | ||
17 | - }) : super( | ||
18 | - settings: settings, | ||
19 | - fullscreenDialog: fullscreenDialog, | ||
20 | - builder: builder, | ||
21 | - maintainState: maintainState); | 13 | + required super.builder, |
14 | + super.settings, | ||
15 | + super.maintainState, | ||
16 | + super.fullscreenDialog, | ||
17 | + }); | ||
22 | 18 | ||
23 | ModalSheetRoute? _nextModalRoute; | 19 | ModalSheetRoute? _nextModalRoute; |
24 | 20 |
@@ -13,11 +13,10 @@ import 'package:flutter/widgets.dart'; | @@ -13,11 +13,10 @@ import 'package:flutter/widgets.dart'; | ||
13 | class ModalScrollController extends InheritedWidget { | 13 | class ModalScrollController extends InheritedWidget { |
14 | /// Creates a widget that associates a [ScrollController] with a subtree. | 14 | /// Creates a widget that associates a [ScrollController] with a subtree. |
15 | ModalScrollController({ | 15 | ModalScrollController({ |
16 | - Key? key, | 16 | + super.key, |
17 | required this.controller, | 17 | required this.controller, |
18 | required Widget child, | 18 | required Widget child, |
19 | }) : super( | 19 | }) : super( |
20 | - key: key, | ||
21 | child: PrimaryScrollController( | 20 | child: PrimaryScrollController( |
22 | controller: controller, | 21 | controller: controller, |
23 | child: child, | 22 | child: child, |
@@ -9,10 +9,10 @@ class ScrollToTopStatusBarHandler extends StatefulWidget { | @@ -9,10 +9,10 @@ class ScrollToTopStatusBarHandler extends StatefulWidget { | ||
9 | final ScrollController scrollController; | 9 | final ScrollController scrollController; |
10 | 10 | ||
11 | const ScrollToTopStatusBarHandler({ | 11 | const ScrollToTopStatusBarHandler({ |
12 | - Key? key, | 12 | + super.key, |
13 | required this.child, | 13 | required this.child, |
14 | required this.scrollController, | 14 | required this.scrollController, |
15 | - }) : super(key: key); | 15 | + }); |
16 | 16 | ||
17 | @override | 17 | @override |
18 | ScrollToTopStatusBarState createState() => ScrollToTopStatusBarState(); | 18 | ScrollToTopStatusBarState createState() => ScrollToTopStatusBarState(); |
@@ -63,10 +63,10 @@ packages: | @@ -63,10 +63,10 @@ packages: | ||
63 | dependency: "direct dev" | 63 | dependency: "direct dev" |
64 | description: | 64 | description: |
65 | name: lints | 65 | name: lints |
66 | - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" | 66 | + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 |
67 | url: "https://pub.dev" | 67 | url: "https://pub.dev" |
68 | source: hosted | 68 | source: hosted |
69 | - version: "2.1.1" | 69 | + version: "3.0.0" |
70 | matcher: | 70 | matcher: |
71 | dependency: transitive | 71 | dependency: transitive |
72 | description: | 72 | description: |
@@ -90,10 +90,9 @@ Finder _textButtonWithText(String text) { | @@ -90,10 +90,9 @@ Finder _textButtonWithText(String text) { | ||
90 | 90 | ||
91 | class _TestWidget extends StatefulWidget { | 91 | class _TestWidget extends StatefulWidget { |
92 | const _TestWidget({ | 92 | const _TestWidget({ |
93 | - Key? key, | ||
94 | this.onInitState, | 93 | this.onInitState, |
95 | this.onDispose, | 94 | this.onDispose, |
96 | - }) : super(key: key); | 95 | + }); |
97 | 96 | ||
98 | final VoidCallback? onInitState; | 97 | final VoidCallback? onInitState; |
99 | final VoidCallback? onDispose; | 98 | final VoidCallback? onDispose; |
@@ -17,8 +17,7 @@ mixin SheetPhysics on ScrollPhysics { | @@ -17,8 +17,7 @@ mixin SheetPhysics on ScrollPhysics { | ||
17 | /// Sheet physics that does not allow the user to drag a sheet. | 17 | /// Sheet physics that does not allow the user to drag a sheet. |
18 | class NeverDraggableSheetPhysics extends NeverScrollableScrollPhysics | 18 | class NeverDraggableSheetPhysics extends NeverScrollableScrollPhysics |
19 | with SheetPhysics { | 19 | with SheetPhysics { |
20 | - const NeverDraggableSheetPhysics({ScrollPhysics? parent}) | ||
21 | - : super(parent: parent); | 20 | + const NeverDraggableSheetPhysics({super.parent}); |
22 | 21 | ||
23 | @override | 22 | @override |
24 | NeverDraggableSheetPhysics applyTo(ScrollPhysics? ancestor) { | 23 | NeverDraggableSheetPhysics applyTo(ScrollPhysics? ancestor) { |
@@ -30,8 +29,7 @@ class NeverDraggableSheetPhysics extends NeverScrollableScrollPhysics | @@ -30,8 +29,7 @@ class NeverDraggableSheetPhysics extends NeverScrollableScrollPhysics | ||
30 | class AlwaysDraggableSheetPhysics extends AlwaysScrollableScrollPhysics | 29 | class AlwaysDraggableSheetPhysics extends AlwaysScrollableScrollPhysics |
31 | with SheetPhysics { | 30 | with SheetPhysics { |
32 | /// Creates scroll physics that always lets the user scroll. | 31 | /// Creates scroll physics that always lets the user scroll. |
33 | - const AlwaysDraggableSheetPhysics({ScrollPhysics? parent}) | ||
34 | - : super(parent: parent); | 32 | + const AlwaysDraggableSheetPhysics({super.parent}); |
35 | 33 | ||
36 | @override | 34 | @override |
37 | AlwaysDraggableSheetPhysics applyTo(ScrollPhysics? ancestor) { | 35 | AlwaysDraggableSheetPhysics applyTo(ScrollPhysics? ancestor) { |
@@ -43,9 +41,9 @@ class AlwaysDraggableSheetPhysics extends AlwaysScrollableScrollPhysics | @@ -43,9 +41,9 @@ class AlwaysDraggableSheetPhysics extends AlwaysScrollableScrollPhysics | ||
43 | class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { | 41 | class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { |
44 | /// Creates sheet physics that bounce back from the edge. | 42 | /// Creates sheet physics that bounce back from the edge. |
45 | const BouncingSheetPhysics({ | 43 | const BouncingSheetPhysics({ |
46 | - ScrollPhysics? parent, | 44 | + super.parent, |
47 | this.overflowViewport = false, | 45 | this.overflowViewport = false, |
48 | - }) : super(parent: parent); | 46 | + }); |
49 | 47 | ||
50 | final bool overflowViewport; | 48 | final bool overflowViewport; |
51 | 49 | ||
@@ -169,7 +167,6 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { | @@ -169,7 +167,6 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { | ||
169 | @override | 167 | @override |
170 | Simulation? createBallisticSimulation( | 168 | Simulation? createBallisticSimulation( |
171 | ScrollMetrics position, double velocity) { | 169 | ScrollMetrics position, double velocity) { |
172 | - | ||
173 | if (position.outOfRange) { | 170 | if (position.outOfRange) { |
174 | return BouncingScrollSimulation( | 171 | return BouncingScrollSimulation( |
175 | spring: const SpringDescription( | 172 | spring: const SpringDescription( |
@@ -223,8 +220,8 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { | @@ -223,8 +220,8 @@ class BouncingSheetPhysics extends ScrollPhysics with SheetPhysics { | ||
223 | class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics { | 220 | class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics { |
224 | /// Creates sheet physics that has no momentum after the user stops dragging. | 221 | /// Creates sheet physics that has no momentum after the user stops dragging. |
225 | const NoMomentumSheetPhysics({ | 222 | const NoMomentumSheetPhysics({ |
226 | - ScrollPhysics? parent, | ||
227 | - }) : super(parent: parent); | 223 | + super.parent, |
224 | + }); | ||
228 | 225 | ||
229 | @override | 226 | @override |
230 | NoMomentumSheetPhysics applyTo(ScrollPhysics? ancestor) { | 227 | NoMomentumSheetPhysics applyTo(ScrollPhysics? ancestor) { |
@@ -289,8 +286,8 @@ class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics { | @@ -289,8 +286,8 @@ class NoMomentumSheetPhysics extends ScrollPhysics with SheetPhysics { | ||
289 | class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics { | 286 | class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics { |
290 | /// Creates sheet physics that has no momentum after the user stops dragging. | 287 | /// Creates sheet physics that has no momentum after the user stops dragging. |
291 | const ClampingSheetPhysics({ | 288 | const ClampingSheetPhysics({ |
292 | - ScrollPhysics? parent, | ||
293 | - }) : super(parent: parent); | 289 | + super.parent, |
290 | + }); | ||
294 | 291 | ||
295 | @override | 292 | @override |
296 | ClampingSheetPhysics applyTo(ScrollPhysics? ancestor) { | 293 | ClampingSheetPhysics applyTo(ScrollPhysics? ancestor) { |
@@ -384,10 +381,10 @@ class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics { | @@ -384,10 +381,10 @@ class ClampingSheetPhysics extends ScrollPhysics with SheetPhysics { | ||
384 | class SnapSheetPhysics extends ScrollPhysics with SheetPhysics { | 381 | class SnapSheetPhysics extends ScrollPhysics with SheetPhysics { |
385 | /// Creates snapping physics for a [Sheet]. | 382 | /// Creates snapping physics for a [Sheet]. |
386 | const SnapSheetPhysics({ | 383 | const SnapSheetPhysics({ |
387 | - ScrollPhysics? parent, | 384 | + super.parent, |
388 | this.stops = const <double>[], | 385 | this.stops = const <double>[], |
389 | this.relative = true, | 386 | this.relative = true, |
390 | - }) : super(parent: parent); | 387 | + }); |
391 | 388 | ||
392 | /// Positions where the sheet could be snapped once the user stops | 389 | /// Positions where the sheet could be snapped once the user stops |
393 | /// dragging | 390 | /// dragging |
@@ -222,11 +222,11 @@ class CupertinoSheetRoute<T> extends SheetRoute<T> { | @@ -222,11 +222,11 @@ class CupertinoSheetRoute<T> extends SheetRoute<T> { | ||
222 | @visibleForTesting | 222 | @visibleForTesting |
223 | class CupertinoSheetBottomRouteTransition extends StatelessWidget { | 223 | class CupertinoSheetBottomRouteTransition extends StatelessWidget { |
224 | const CupertinoSheetBottomRouteTransition({ | 224 | const CupertinoSheetBottomRouteTransition({ |
225 | - Key? key, | 225 | + super.key, |
226 | required this.sheetAnimation, | 226 | required this.sheetAnimation, |
227 | required this.secondaryAnimation, | 227 | required this.secondaryAnimation, |
228 | required this.body, | 228 | required this.body, |
229 | - }) : super(key: key); | 229 | + }); |
230 | 230 | ||
231 | final Widget body; | 231 | final Widget body; |
232 | 232 | ||
@@ -319,10 +319,10 @@ class CupertinoSheetPage<T> extends Page<T> { | @@ -319,10 +319,10 @@ class CupertinoSheetPage<T> extends Page<T> { | ||
319 | const CupertinoSheetPage({ | 319 | const CupertinoSheetPage({ |
320 | required this.child, | 320 | required this.child, |
321 | this.maintainState = true, | 321 | this.maintainState = true, |
322 | - LocalKey? key, | ||
323 | - String? name, | ||
324 | - Object? arguments, | ||
325 | - }) : super(key: key, name: name, arguments: arguments); | 322 | + super.key, |
323 | + super.name, | ||
324 | + super.arguments, | ||
325 | + }); | ||
326 | 326 | ||
327 | /// The content to be shown in the [Route] created by this page. | 327 | /// The content to be shown in the [Route] created by this page. |
328 | final Widget child; | 328 | final Widget child; |
@@ -343,17 +343,13 @@ class CupertinoSheetPage<T> extends Page<T> { | @@ -343,17 +343,13 @@ class CupertinoSheetPage<T> extends Page<T> { | ||
343 | class _PageBasedCupertinoSheetRoute<T> extends CupertinoSheetRoute<T> { | 343 | class _PageBasedCupertinoSheetRoute<T> extends CupertinoSheetRoute<T> { |
344 | _PageBasedCupertinoSheetRoute({ | 344 | _PageBasedCupertinoSheetRoute({ |
345 | required CupertinoSheetPage<T> page, | 345 | required CupertinoSheetPage<T> page, |
346 | - List<double>? stops, | ||
347 | - double initialStop = 1, | ||
348 | - Color? backgroundColor, | ||
349 | - bool maintainState = true, | 346 | + super.stops, |
347 | + super.initialStop, | ||
348 | + super.backgroundColor, | ||
349 | + super.maintainState, | ||
350 | }) : super( | 350 | }) : super( |
351 | settings: page, | 351 | settings: page, |
352 | builder: (BuildContext context) => page.child, | 352 | builder: (BuildContext context) => page.child, |
353 | - initialStop: initialStop, | ||
354 | - backgroundColor: backgroundColor, | ||
355 | - stops: stops, | ||
356 | - maintainState: maintainState, | ||
357 | ); | 353 | ); |
358 | 354 | ||
359 | CupertinoSheetPage<T> get _page => settings as CupertinoSheetPage<T>; | 355 | CupertinoSheetPage<T> get _page => settings as CupertinoSheetPage<T>; |
@@ -350,8 +350,7 @@ class _PageBasedSheetRoute<T> extends SheetRoute<T> { | @@ -350,8 +350,7 @@ class _PageBasedSheetRoute<T> extends SheetRoute<T> { | ||
350 | } | 350 | } |
351 | 351 | ||
352 | class _SheetRouteContainer extends StatefulWidget { | 352 | class _SheetRouteContainer extends StatefulWidget { |
353 | - const _SheetRouteContainer({Key? key, required this.sheetRoute}) | ||
354 | - : super(key: key); | 353 | + const _SheetRouteContainer({required this.sheetRoute}); |
355 | 354 | ||
356 | final SheetRoute<dynamic> sheetRoute; | 355 | final SheetRoute<dynamic> sheetRoute; |
357 | @override | 356 | @override |
@@ -17,13 +17,10 @@ import 'package:sheet/sheet.dart'; | @@ -17,13 +17,10 @@ import 'package:sheet/sheet.dart'; | ||
17 | /// descendants. | 17 | /// descendants. |
18 | class SheetPrimaryScrollController extends ScrollController { | 18 | class SheetPrimaryScrollController extends ScrollController { |
19 | SheetPrimaryScrollController({ | 19 | SheetPrimaryScrollController({ |
20 | - double initialScrollOffset = 0.0, | ||
21 | - String? debugLabel, | 20 | + super.initialScrollOffset, |
21 | + super.debugLabel, | ||
22 | required this.sheetContext, | 22 | required this.sheetContext, |
23 | - }) : super( | ||
24 | - debugLabel: debugLabel, | ||
25 | - initialScrollOffset: initialScrollOffset, | ||
26 | - ); | 23 | + }); |
27 | 24 | ||
28 | final SheetContext sheetContext; | 25 | final SheetContext sheetContext; |
29 | 26 | ||
@@ -43,7 +40,7 @@ class SheetPrimaryScrollController extends ScrollController { | @@ -43,7 +40,7 @@ class SheetPrimaryScrollController extends ScrollController { | ||
43 | } | 40 | } |
44 | 41 | ||
45 | class _SheetScrollActivity extends ScrollActivity { | 42 | class _SheetScrollActivity extends ScrollActivity { |
46 | - _SheetScrollActivity(SheetPosition delegate) : super(delegate); | 43 | + _SheetScrollActivity(SheetPosition super.delegate); |
47 | 44 | ||
48 | @override | 45 | @override |
49 | bool get isScrolling => true; | 46 | bool get isScrolling => true; |
@@ -69,21 +66,14 @@ class _SheetScrollActivity extends ScrollActivity { | @@ -69,21 +66,14 @@ class _SheetScrollActivity extends ScrollActivity { | ||
69 | /// * [_SheetScrollController], which uses this as its [ScrollPosition]. | 66 | /// * [_SheetScrollController], which uses this as its [ScrollPosition]. |
70 | class SheetPrimaryScrollPosition extends ScrollPositionWithSingleContext { | 67 | class SheetPrimaryScrollPosition extends ScrollPositionWithSingleContext { |
71 | SheetPrimaryScrollPosition({ | 68 | SheetPrimaryScrollPosition({ |
72 | - required ScrollPhysics physics, | ||
73 | - required ScrollContext context, | ||
74 | - double initialPixels = 0.0, | ||
75 | - bool keepScrollOffset = true, | 69 | + required super.physics, |
70 | + required super.context, | ||
71 | + double super.initialPixels, | ||
72 | + super.keepScrollOffset, | ||
76 | required this.sheetContext, | 73 | required this.sheetContext, |
77 | - ScrollPosition? oldPosition, | ||
78 | - String? debugLabel, | ||
79 | - }) : super( | ||
80 | - physics: physics, | ||
81 | - context: context, | ||
82 | - initialPixels: initialPixels, | ||
83 | - keepScrollOffset: keepScrollOffset, | ||
84 | - oldPosition: oldPosition, | ||
85 | - debugLabel: debugLabel, | ||
86 | - ); | 74 | + super.oldPosition, |
75 | + super.debugLabel, | ||
76 | + }); | ||
87 | 77 | ||
88 | final SheetContext sheetContext; | 78 | final SheetContext sheetContext; |
89 | SheetPosition get sheetPosition => sheetContext.position; | 79 | SheetPosition get sheetPosition => sheetContext.position; |
@@ -43,7 +43,7 @@ class SheetScrollable extends StatefulWidget { | @@ -43,7 +43,7 @@ class SheetScrollable extends StatefulWidget { | ||
43 | /// | 43 | /// |
44 | /// The [axisDirection] and [viewportBuilder] arguments must not be null. | 44 | /// The [axisDirection] and [viewportBuilder] arguments must not be null. |
45 | const SheetScrollable({ | 45 | const SheetScrollable({ |
46 | - Key? key, | 46 | + super.key, |
47 | this.axisDirection = AxisDirection.down, | 47 | this.axisDirection = AxisDirection.down, |
48 | this.controller, | 48 | this.controller, |
49 | this.physics, | 49 | this.physics, |
@@ -55,8 +55,7 @@ class SheetScrollable extends StatefulWidget { | @@ -55,8 +55,7 @@ class SheetScrollable extends StatefulWidget { | ||
55 | this.scrollBehavior, | 55 | this.scrollBehavior, |
56 | this.initialExtent, | 56 | this.initialExtent, |
57 | this.minInteractionExtent = 0, | 57 | this.minInteractionExtent = 0, |
58 | - }) : assert(semanticChildCount == null || semanticChildCount >= 0), | ||
59 | - super(key: key); | 58 | + }) : assert(semanticChildCount == null || semanticChildCount >= 0); |
60 | 59 | ||
61 | /// The direction in which this widget scrolls. | 60 | /// The direction in which this widget scrolls. |
62 | /// | 61 | /// |
@@ -285,11 +284,10 @@ class SheetScrollable extends StatefulWidget { | @@ -285,11 +284,10 @@ class SheetScrollable extends StatefulWidget { | ||
285 | // ScrollableState.build() always rebuilds its _ScrollableScope. | 284 | // ScrollableState.build() always rebuilds its _ScrollableScope. |
286 | class _ScrollableScope extends InheritedWidget { | 285 | class _ScrollableScope extends InheritedWidget { |
287 | const _ScrollableScope({ | 286 | const _ScrollableScope({ |
288 | - Key? key, | ||
289 | required this.scrollable, | 287 | required this.scrollable, |
290 | required this.position, | 288 | required this.position, |
291 | - required Widget child, | ||
292 | - }) : super(key: key, child: child); | 289 | + required super.child, |
290 | + }); | ||
293 | 291 | ||
294 | final SheetState scrollable; | 292 | final SheetState scrollable; |
295 | final ScrollPosition position; | 293 | final ScrollPosition position; |
@@ -772,13 +770,12 @@ class SheetState extends State<SheetScrollable> | @@ -772,13 +770,12 @@ class SheetState extends State<SheetScrollable> | ||
772 | /// scrollable children. | 770 | /// scrollable children. |
773 | class _ScrollSemantics extends SingleChildRenderObjectWidget { | 771 | class _ScrollSemantics extends SingleChildRenderObjectWidget { |
774 | const _ScrollSemantics({ | 772 | const _ScrollSemantics({ |
775 | - Key? key, | 773 | + super.key, |
776 | required this.position, | 774 | required this.position, |
777 | required this.allowImplicitScrolling, | 775 | required this.allowImplicitScrolling, |
778 | required this.semanticChildCount, | 776 | required this.semanticChildCount, |
779 | - Widget? child, | ||
780 | - }) : assert(semanticChildCount == null || semanticChildCount >= 0), | ||
781 | - super(key: key, child: child); | 777 | + super.child, |
778 | + }) : assert(semanticChildCount == null || semanticChildCount >= 0); | ||
782 | 779 | ||
783 | final ScrollPosition position; | 780 | final ScrollPosition position; |
784 | final bool allowImplicitScrolling; | 781 | final bool allowImplicitScrolling; |
@@ -292,8 +292,7 @@ class Sheet extends StatelessWidget { | @@ -292,8 +292,7 @@ class Sheet extends StatelessWidget { | ||
292 | } | 292 | } |
293 | 293 | ||
294 | class _DefaultSheetScrollController extends StatelessWidget { | 294 | class _DefaultSheetScrollController extends StatelessWidget { |
295 | - const _DefaultSheetScrollController({Key? key, required this.child}) | ||
296 | - : super(key: key); | 295 | + const _DefaultSheetScrollController({required this.child}); |
297 | 296 | ||
298 | final Widget child; | 297 | final Widget child; |
299 | 298 |
@@ -14,8 +14,7 @@ typedef SheetControllerCallback = void Function(SheetController controller); | @@ -14,8 +14,7 @@ typedef SheetControllerCallback = void Function(SheetController controller); | ||
14 | /// | 14 | /// |
15 | /// | 15 | /// |
16 | class DefaultSheetController extends StatefulWidget { | 16 | class DefaultSheetController extends StatefulWidget { |
17 | - const DefaultSheetController({Key? key, required this.child, this.onCreated}) | ||
18 | - : super(key: key); | 17 | + const DefaultSheetController({super.key, required this.child, this.onCreated}); |
19 | 18 | ||
20 | final Widget child; | 19 | final Widget child; |
21 | 20 | ||
@@ -56,8 +55,7 @@ class _DefaultSheetControllerState extends State<DefaultSheetController> { | @@ -56,8 +55,7 @@ class _DefaultSheetControllerState extends State<DefaultSheetController> { | ||
56 | 55 | ||
57 | class _InheritedSheetController extends InheritedWidget { | 56 | class _InheritedSheetController extends InheritedWidget { |
58 | const _InheritedSheetController( | 57 | const _InheritedSheetController( |
59 | - {Key? key, required super.child, required this.controller}) | ||
60 | - : super(key: key); | 58 | + {required super.child, required this.controller}); |
61 | 59 | ||
62 | final SheetController controller; | 60 | final SheetController controller; |
63 | 61 |
@@ -14,12 +14,12 @@ import 'package:sheet/sheet.dart'; | @@ -14,12 +14,12 @@ import 'package:sheet/sheet.dart'; | ||
14 | /// * [Sheet], that uses this widget to allow resizable sheet child | 14 | /// * [Sheet], that uses this widget to allow resizable sheet child |
15 | class ResizableSheetChild extends SingleChildRenderObjectWidget { | 15 | class ResizableSheetChild extends SingleChildRenderObjectWidget { |
16 | const ResizableSheetChild({ | 16 | const ResizableSheetChild({ |
17 | - Key? key, | 17 | + super.key, |
18 | this.minExtent = 0, | 18 | this.minExtent = 0, |
19 | required this.offset, | 19 | required this.offset, |
20 | - required Widget child, | 20 | + required Widget super.child, |
21 | required this.resizable, | 21 | required this.resizable, |
22 | - }) : super(key: key, child: child); | 22 | + }); |
23 | 23 | ||
24 | final double minExtent; | 24 | final double minExtent; |
25 | final bool resizable; | 25 | final bool resizable; |
@@ -6,9 +6,9 @@ import 'package:flutter/widgets.dart'; | @@ -6,9 +6,9 @@ import 'package:flutter/widgets.dart'; | ||
6 | /// Extracted from [Scaffold] and used in [Sheet] | 6 | /// Extracted from [Scaffold] and used in [Sheet] |
7 | class ScrollToTopStatusBarHandler extends StatefulWidget { | 7 | class ScrollToTopStatusBarHandler extends StatefulWidget { |
8 | const ScrollToTopStatusBarHandler({ | 8 | const ScrollToTopStatusBarHandler({ |
9 | - Key? key, | 9 | + super.key, |
10 | required this.child, | 10 | required this.child, |
11 | - }) : super(key: key); | 11 | + }); |
12 | 12 | ||
13 | final Widget child; | 13 | final Widget child; |
14 | 14 |
@@ -11,7 +11,7 @@ import 'dart:math' as math; | @@ -11,7 +11,7 @@ import 'dart:math' as math; | ||
11 | /// If the sheet is fully expanded to the top of the screen the top padding | 11 | /// If the sheet is fully expanded to the top of the screen the top padding |
12 | /// will be the same as the parent top safe area. | 12 | /// will be the same as the parent top safe area. |
13 | class SheetMediaQuery extends StatelessWidget { | 13 | class SheetMediaQuery extends StatelessWidget { |
14 | - const SheetMediaQuery({Key? key, required this.child}) : super(key: key); | 14 | + const SheetMediaQuery({super.key, required this.child}); |
15 | 15 | ||
16 | final Widget child; | 16 | final Widget child; |
17 | 17 |
1 | # Generated by pub | 1 | # Generated by pub |
2 | # See https://dart.dev/tools/pub/glossary#lockfile | 2 | # See https://dart.dev/tools/pub/glossary#lockfile |
3 | packages: | 3 | packages: |
4 | - _fe_analyzer_shared: | ||
5 | - dependency: transitive | ||
6 | - description: | ||
7 | - name: _fe_analyzer_shared | ||
8 | - sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a | ||
9 | - url: "https://pub.dev" | ||
10 | - source: hosted | ||
11 | - version: "61.0.0" | ||
12 | - analyzer: | ||
13 | - dependency: transitive | ||
14 | - description: | ||
15 | - name: analyzer | ||
16 | - sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 | ||
17 | - url: "https://pub.dev" | ||
18 | - source: hosted | ||
19 | - version: "5.13.0" | ||
20 | - args: | ||
21 | - dependency: transitive | ||
22 | - description: | ||
23 | - name: args | ||
24 | - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 | ||
25 | - url: "https://pub.dev" | ||
26 | - source: hosted | ||
27 | - version: "2.4.2" | ||
28 | async: | 4 | async: |
29 | dependency: transitive | 5 | dependency: transitive |
30 | description: | 6 | description: |
@@ -65,30 +41,6 @@ packages: | @@ -65,30 +41,6 @@ packages: | ||
65 | url: "https://pub.dev" | 41 | url: "https://pub.dev" |
66 | source: hosted | 42 | source: hosted |
67 | version: "1.17.2" | 43 | version: "1.17.2" |
68 | - convert: | ||
69 | - dependency: transitive | ||
70 | - description: | ||
71 | - name: convert | ||
72 | - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" | ||
73 | - url: "https://pub.dev" | ||
74 | - source: hosted | ||
75 | - version: "3.1.1" | ||
76 | - coverage: | ||
77 | - dependency: transitive | ||
78 | - description: | ||
79 | - name: coverage | ||
80 | - sha256: "595a29b55ce82d53398e1bcc2cba525d7bd7c59faeb2d2540e9d42c390cfeeeb" | ||
81 | - url: "https://pub.dev" | ||
82 | - source: hosted | ||
83 | - version: "1.6.4" | ||
84 | - crypto: | ||
85 | - dependency: transitive | ||
86 | - description: | ||
87 | - name: crypto | ||
88 | - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab | ||
89 | - url: "https://pub.dev" | ||
90 | - source: hosted | ||
91 | - version: "3.0.3" | ||
92 | fake_async: | 44 | fake_async: |
93 | dependency: transitive | 45 | dependency: transitive |
94 | description: | 46 | description: |
@@ -97,14 +49,6 @@ packages: | @@ -97,14 +49,6 @@ packages: | ||
97 | url: "https://pub.dev" | 49 | url: "https://pub.dev" |
98 | source: hosted | 50 | source: hosted |
99 | version: "1.3.1" | 51 | version: "1.3.1" |
100 | - file: | ||
101 | - dependency: transitive | ||
102 | - description: | ||
103 | - name: file | ||
104 | - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" | ||
105 | - url: "https://pub.dev" | ||
106 | - source: hosted | ||
107 | - version: "7.0.0" | ||
108 | flutter: | 52 | flutter: |
109 | dependency: "direct main" | 53 | dependency: "direct main" |
110 | description: flutter | 54 | description: flutter |
@@ -115,70 +59,14 @@ packages: | @@ -115,70 +59,14 @@ packages: | ||
115 | description: flutter | 59 | description: flutter |
116 | source: sdk | 60 | source: sdk |
117 | version: "0.0.0" | 61 | version: "0.0.0" |
118 | - frontend_server_client: | ||
119 | - dependency: transitive | ||
120 | - description: | ||
121 | - name: frontend_server_client | ||
122 | - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" | ||
123 | - url: "https://pub.dev" | ||
124 | - source: hosted | ||
125 | - version: "3.2.0" | ||
126 | - glob: | ||
127 | - dependency: transitive | ||
128 | - description: | ||
129 | - name: glob | ||
130 | - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" | ||
131 | - url: "https://pub.dev" | ||
132 | - source: hosted | ||
133 | - version: "2.1.2" | ||
134 | - http_multi_server: | ||
135 | - dependency: transitive | ||
136 | - description: | ||
137 | - name: http_multi_server | ||
138 | - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" | ||
139 | - url: "https://pub.dev" | ||
140 | - source: hosted | ||
141 | - version: "3.2.1" | ||
142 | - http_parser: | ||
143 | - dependency: transitive | ||
144 | - description: | ||
145 | - name: http_parser | ||
146 | - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" | ||
147 | - url: "https://pub.dev" | ||
148 | - source: hosted | ||
149 | - version: "4.0.2" | ||
150 | - io: | ||
151 | - dependency: transitive | ||
152 | - description: | ||
153 | - name: io | ||
154 | - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" | ||
155 | - url: "https://pub.dev" | ||
156 | - source: hosted | ||
157 | - version: "1.0.4" | ||
158 | - js: | ||
159 | - dependency: transitive | ||
160 | - description: | ||
161 | - name: js | ||
162 | - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 | ||
163 | - url: "https://pub.dev" | ||
164 | - source: hosted | ||
165 | - version: "0.6.7" | ||
166 | lints: | 62 | lints: |
167 | dependency: "direct dev" | 63 | dependency: "direct dev" |
168 | description: | 64 | description: |
169 | name: lints | 65 | name: lints |
170 | - sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" | 66 | + sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290 |
171 | url: "https://pub.dev" | 67 | url: "https://pub.dev" |
172 | source: hosted | 68 | source: hosted |
173 | - version: "2.1.1" | ||
174 | - logging: | ||
175 | - dependency: transitive | ||
176 | - description: | ||
177 | - name: logging | ||
178 | - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" | ||
179 | - url: "https://pub.dev" | ||
180 | - source: hosted | ||
181 | - version: "1.2.0" | 69 | + version: "3.0.0" |
182 | matcher: | 70 | matcher: |
183 | dependency: transitive | 71 | dependency: transitive |
184 | description: | 72 | description: |
@@ -203,38 +91,14 @@ packages: | @@ -203,38 +91,14 @@ packages: | ||
203 | url: "https://pub.dev" | 91 | url: "https://pub.dev" |
204 | source: hosted | 92 | source: hosted |
205 | version: "1.9.1" | 93 | version: "1.9.1" |
206 | - mime: | ||
207 | - dependency: transitive | ||
208 | - description: | ||
209 | - name: mime | ||
210 | - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e | ||
211 | - url: "https://pub.dev" | ||
212 | - source: hosted | ||
213 | - version: "1.0.4" | ||
214 | mocktail: | 94 | mocktail: |
215 | dependency: "direct dev" | 95 | dependency: "direct dev" |
216 | description: | 96 | description: |
217 | name: mocktail | 97 | name: mocktail |
218 | - sha256: "80a996cd9a69284b3dc521ce185ffe9150cde69767c2d3a0720147d93c0cef53" | ||
219 | - url: "https://pub.dev" | ||
220 | - source: hosted | ||
221 | - version: "0.3.0" | ||
222 | - node_preamble: | ||
223 | - dependency: transitive | ||
224 | - description: | ||
225 | - name: node_preamble | ||
226 | - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" | 98 | + sha256: bac151b31e4ed78bd59ab89aa4c0928f297b1180186d5daf03734519e5f596c1 |
227 | url: "https://pub.dev" | 99 | url: "https://pub.dev" |
228 | source: hosted | 100 | source: hosted |
229 | - version: "2.0.2" | ||
230 | - package_config: | ||
231 | - dependency: transitive | ||
232 | - description: | ||
233 | - name: package_config | ||
234 | - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" | ||
235 | - url: "https://pub.dev" | ||
236 | - source: hosted | ||
237 | - version: "2.1.0" | 101 | + version: "1.0.1" |
238 | path: | 102 | path: |
239 | dependency: transitive | 103 | dependency: transitive |
240 | description: | 104 | description: |
@@ -243,75 +107,11 @@ packages: | @@ -243,75 +107,11 @@ packages: | ||
243 | url: "https://pub.dev" | 107 | url: "https://pub.dev" |
244 | source: hosted | 108 | source: hosted |
245 | version: "1.8.3" | 109 | version: "1.8.3" |
246 | - pool: | ||
247 | - dependency: transitive | ||
248 | - description: | ||
249 | - name: pool | ||
250 | - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" | ||
251 | - url: "https://pub.dev" | ||
252 | - source: hosted | ||
253 | - version: "1.5.1" | ||
254 | - pub_semver: | ||
255 | - dependency: transitive | ||
256 | - description: | ||
257 | - name: pub_semver | ||
258 | - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" | ||
259 | - url: "https://pub.dev" | ||
260 | - source: hosted | ||
261 | - version: "2.1.4" | ||
262 | - shelf: | ||
263 | - dependency: transitive | ||
264 | - description: | ||
265 | - name: shelf | ||
266 | - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 | ||
267 | - url: "https://pub.dev" | ||
268 | - source: hosted | ||
269 | - version: "1.4.1" | ||
270 | - shelf_packages_handler: | ||
271 | - dependency: transitive | ||
272 | - description: | ||
273 | - name: shelf_packages_handler | ||
274 | - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" | ||
275 | - url: "https://pub.dev" | ||
276 | - source: hosted | ||
277 | - version: "3.0.2" | ||
278 | - shelf_static: | ||
279 | - dependency: transitive | ||
280 | - description: | ||
281 | - name: shelf_static | ||
282 | - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e | ||
283 | - url: "https://pub.dev" | ||
284 | - source: hosted | ||
285 | - version: "1.1.2" | ||
286 | - shelf_web_socket: | ||
287 | - dependency: transitive | ||
288 | - description: | ||
289 | - name: shelf_web_socket | ||
290 | - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" | ||
291 | - url: "https://pub.dev" | ||
292 | - source: hosted | ||
293 | - version: "1.0.4" | ||
294 | sky_engine: | 110 | sky_engine: |
295 | dependency: transitive | 111 | dependency: transitive |
296 | description: flutter | 112 | description: flutter |
297 | source: sdk | 113 | source: sdk |
298 | version: "0.0.99" | 114 | version: "0.0.99" |
299 | - source_map_stack_trace: | ||
300 | - dependency: transitive | ||
301 | - description: | ||
302 | - name: source_map_stack_trace | ||
303 | - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" | ||
304 | - url: "https://pub.dev" | ||
305 | - source: hosted | ||
306 | - version: "2.1.1" | ||
307 | - source_maps: | ||
308 | - dependency: transitive | ||
309 | - description: | ||
310 | - name: source_maps | ||
311 | - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" | ||
312 | - url: "https://pub.dev" | ||
313 | - source: hosted | ||
314 | - version: "0.10.12" | ||
315 | source_span: | 115 | source_span: |
316 | dependency: transitive | 116 | dependency: transitive |
317 | description: | 117 | description: |
@@ -352,14 +152,6 @@ packages: | @@ -352,14 +152,6 @@ packages: | ||
352 | url: "https://pub.dev" | 152 | url: "https://pub.dev" |
353 | source: hosted | 153 | source: hosted |
354 | version: "1.2.1" | 154 | version: "1.2.1" |
355 | - test: | ||
356 | - dependency: transitive | ||
357 | - description: | ||
358 | - name: test | ||
359 | - sha256: "13b41f318e2a5751c3169137103b60c584297353d4b1761b66029bae6411fe46" | ||
360 | - url: "https://pub.dev" | ||
361 | - source: hosted | ||
362 | - version: "1.24.3" | ||
363 | test_api: | 155 | test_api: |
364 | dependency: transitive | 156 | dependency: transitive |
365 | description: | 157 | description: |
@@ -368,22 +160,6 @@ packages: | @@ -368,22 +160,6 @@ packages: | ||
368 | url: "https://pub.dev" | 160 | url: "https://pub.dev" |
369 | source: hosted | 161 | source: hosted |
370 | version: "0.6.0" | 162 | version: "0.6.0" |
371 | - test_core: | ||
372 | - dependency: transitive | ||
373 | - description: | ||
374 | - name: test_core | ||
375 | - sha256: "99806e9e6d95c7b059b7a0fc08f07fc53fabe54a829497f0d9676299f1e8637e" | ||
376 | - url: "https://pub.dev" | ||
377 | - source: hosted | ||
378 | - version: "0.5.3" | ||
379 | - typed_data: | ||
380 | - dependency: transitive | ||
381 | - description: | ||
382 | - name: typed_data | ||
383 | - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c | ||
384 | - url: "https://pub.dev" | ||
385 | - source: hosted | ||
386 | - version: "1.3.2" | ||
387 | vector_math: | 163 | vector_math: |
388 | dependency: transitive | 164 | dependency: transitive |
389 | description: | 165 | description: |
@@ -392,22 +168,6 @@ packages: | @@ -392,22 +168,6 @@ packages: | ||
392 | url: "https://pub.dev" | 168 | url: "https://pub.dev" |
393 | source: hosted | 169 | source: hosted |
394 | version: "2.1.4" | 170 | version: "2.1.4" |
395 | - vm_service: | ||
396 | - dependency: transitive | ||
397 | - description: | ||
398 | - name: vm_service | ||
399 | - sha256: c538be99af830f478718b51630ec1b6bee5e74e52c8a802d328d9e71d35d2583 | ||
400 | - url: "https://pub.dev" | ||
401 | - source: hosted | ||
402 | - version: "11.10.0" | ||
403 | - watcher: | ||
404 | - dependency: transitive | ||
405 | - description: | ||
406 | - name: watcher | ||
407 | - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" | ||
408 | - url: "https://pub.dev" | ||
409 | - source: hosted | ||
410 | - version: "1.1.0" | ||
411 | web: | 171 | web: |
412 | dependency: transitive | 172 | dependency: transitive |
413 | description: | 173 | description: |
@@ -416,29 +176,5 @@ packages: | @@ -416,29 +176,5 @@ packages: | ||
416 | url: "https://pub.dev" | 176 | url: "https://pub.dev" |
417 | source: hosted | 177 | source: hosted |
418 | version: "0.1.4-beta" | 178 | version: "0.1.4-beta" |
419 | - web_socket_channel: | ||
420 | - dependency: transitive | ||
421 | - description: | ||
422 | - name: web_socket_channel | ||
423 | - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b | ||
424 | - url: "https://pub.dev" | ||
425 | - source: hosted | ||
426 | - version: "2.4.0" | ||
427 | - webkit_inspection_protocol: | ||
428 | - dependency: transitive | ||
429 | - description: | ||
430 | - name: webkit_inspection_protocol | ||
431 | - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" | ||
432 | - url: "https://pub.dev" | ||
433 | - source: hosted | ||
434 | - version: "1.2.1" | ||
435 | - yaml: | ||
436 | - dependency: transitive | ||
437 | - description: | ||
438 | - name: yaml | ||
439 | - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" | ||
440 | - url: "https://pub.dev" | ||
441 | - source: hosted | ||
442 | - version: "3.1.2" | ||
443 | sdks: | 179 | sdks: |
444 | dart: ">=3.1.0-185.0.dev <4.0.0" | 180 | dart: ">=3.1.0-185.0.dev <4.0.0" |
@@ -8,8 +8,7 @@ import 'package:sheet/sheet.dart'; | @@ -8,8 +8,7 @@ import 'package:sheet/sheet.dart'; | ||
8 | 8 | ||
9 | class ScrollPositionListener extends StatefulWidget { | 9 | class ScrollPositionListener extends StatefulWidget { |
10 | const ScrollPositionListener( | 10 | const ScrollPositionListener( |
11 | - {Key? key, required this.child, required this.log}) | ||
12 | - : super(key: key); | 11 | + {super.key, required this.child, required this.log}); |
13 | 12 | ||
14 | final Widget child; | 13 | final Widget child; |
15 | final ValueChanged<String> log; | 14 | final ValueChanged<String> log; |
@@ -32,7 +32,7 @@ void main() { | @@ -32,7 +32,7 @@ void main() { | ||
32 | late VoidCallback mockOnTap; | 32 | late VoidCallback mockOnTap; |
33 | 33 | ||
34 | setUp(() { | 34 | setUp(() { |
35 | - mockOnTap = MockVoidCallback(); | 35 | + mockOnTap = MockVoidCallback().call; |
36 | when(mockOnTap).thenAnswer((_) {}); | 36 | when(mockOnTap).thenAnswer((_) {}); |
37 | }); | 37 | }); |
38 | 38 |
-
Please register or login to post a comment