update refresh

null_safety
小赖 4 years ago
parent efcc7d6ce2
commit a6be00df2f

@ -123,7 +123,7 @@ class ASButton extends StatefulWidget {
this.disableTextColor, this.disableTextColor,
this.splashColor}) this.splashColor})
: bgcolor = Color(0xFFF2F2F2), : bgcolor = Color(0xFFF2F2F2),
textColor =kTextColor, textColor = kTextColor,
outline = false, outline = false,
super(key: key); super(key: key);
ASButton.order({ ASButton.order({

@ -7,12 +7,18 @@ class ASRefresh extends StatefulWidget {
final Future Function() onLoad; final Future Function() onLoad;
final Future Function() onRefresh; final Future Function() onRefresh;
final EasyRefreshController controller; final EasyRefreshController controller;
final bool firstRefresh;
final Widget emptyWidget;
final Widget firstRefreshWidget;
ASRefresh({ ASRefresh({
Key key, Key key,
@required this.child, @required this.child,
this.onLoad, this.onLoad,
this.onRefresh, this.onRefresh,
this.controller, this.controller,
this.firstRefresh = true,
this.emptyWidget,
this.firstRefreshWidget,
}) : super(key: key); }) : super(key: key);
@override @override
@ -27,6 +33,9 @@ class _ASRefreshState extends State<ASRefresh> {
onRefresh: widget.onRefresh, onRefresh: widget.onRefresh,
onLoad: widget.onLoad, onLoad: widget.onLoad,
controller: widget.controller, controller: widget.controller,
firstRefresh: widget.firstRefresh,
emptyWidget: widget.emptyWidget,
firstRefreshWidget: widget.firstRefreshWidget,
header: MaterialHeader( header: MaterialHeader(
valueColor: AlwaysStoppedAnimation(kPrimaryColor), valueColor: AlwaysStoppedAnimation(kPrimaryColor),
), ),

Loading…
Cancel
Save