|
@@ -9,14 +9,14 @@ import 'package:flutter/widgets.dart';
|
|
|
|
|
|
class _SliverLoading extends SingleChildRenderObjectWidget {
|
|
|
const _SliverLoading({
|
|
|
- Key key,
|
|
|
+ Key? key,
|
|
|
this.loadIndicatorLayoutExtent = 0.0,
|
|
|
this.hasLayoutExtent = false,
|
|
|
this.enableInfiniteLoad = true,
|
|
|
this.footerFloat = false,
|
|
|
this.axisDirectionNotifier,
|
|
|
- @required this.infiniteLoad,
|
|
|
- @required this.extraExtentNotifier,
|
|
|
+ required this.infiniteLoad,
|
|
|
+ required this.extraExtentNotifier,
|
|
|
Widget child,
|
|
|
}) : assert(loadIndicatorLayoutExtent != null),
|
|
|
assert(loadIndicatorLayoutExtent >= 0.0),
|
|
@@ -79,13 +79,13 @@ class _SliverLoading extends SingleChildRenderObjectWidget {
|
|
|
// prevent scroll position jumps as the [layoutExtent] is set and unset.
|
|
|
class _RenderRefreshSliverLoad extends RenderSliverSingleBoxAdapter {
|
|
|
_RenderRefreshSliverLoad({
|
|
|
- @required double loadIndicatorExtent,
|
|
|
- @required bool hasLayoutExtent,
|
|
|
- @required bool enableInfiniteLoad,
|
|
|
- @required this.infiniteLoad,
|
|
|
- @required this.extraExtentNotifier,
|
|
|
- @required this.axisDirectionNotifier,
|
|
|
- @required bool footerFloat,
|
|
|
+ required double loadIndicatorExtent,
|
|
|
+ required bool hasLayoutExtent,
|
|
|
+ required bool enableInfiniteLoad,
|
|
|
+ required this.infiniteLoad,
|
|
|
+ required this.extraExtentNotifier,
|
|
|
+ required this.axisDirectionNotifier,
|
|
|
+ required bool footerFloat,
|
|
|
RenderBox child,
|
|
|
}) : assert(loadIndicatorExtent != null),
|
|
|
assert(loadIndicatorExtent >= 0.0),
|
|
@@ -416,10 +416,10 @@ class RefreshSliverLoadControl extends StatefulWidget {
|
|
|
/// The [onLoad] argument will be called when pulled far enough to trigger
|
|
|
/// a refresh.
|
|
|
const RefreshSliverLoadControl({
|
|
|
- Key key,
|
|
|
+ Key? key,
|
|
|
this.loadTriggerPullDistance = _defaultLoadTriggerPullDistance,
|
|
|
this.loadIndicatorExtent = _defaultLoadIndicatorExtent,
|
|
|
- @required this.builder,
|
|
|
+ required this.builder,
|
|
|
this.completeDuration,
|
|
|
this.onLoad,
|
|
|
this.focusNotifier,
|