MiuixPullToRefresh constructor
const
MiuixPullToRefresh({
- Key? key,
- required bool isRefreshing,
- required VoidCallback onRefresh,
- required Widget child,
- MiuixPullToRefreshController? controller,
- EdgeInsetsGeometry contentPadding = EdgeInsets.zero,
- MiuixScrollBehavior? topAppBarScrollBehavior,
- Color color = MiuixPullToRefreshDefaults.color,
- double circleSize = MiuixPullToRefreshDefaults.circleSize,
- List<
String> refreshTexts = MiuixPullToRefreshDefaults.refreshTexts, - TextStyle refreshTextStyle = MiuixPullToRefreshDefaults.refreshTextStyle,
- ValueChanged<
double> ? onPullProgress,
Implementation
const MiuixPullToRefresh({
super.key,
required this.isRefreshing,
required this.onRefresh,
required this.child,
this.controller,
this.contentPadding = EdgeInsets.zero,
this.topAppBarScrollBehavior,
this.color = MiuixPullToRefreshDefaults.color,
this.circleSize = MiuixPullToRefreshDefaults.circleSize,
this.refreshTexts = MiuixPullToRefreshDefaults.refreshTexts,
this.refreshTextStyle = MiuixPullToRefreshDefaults.refreshTextStyle,
this.onPullProgress,
}) : assert(circleSize >= 0);