buildOverscrollIndicator method
Widget
buildOverscrollIndicator(
- BuildContext context,
- Widget child,
- ScrollableDetails details
override
Applies a GlowingOverscrollIndicator to the child widget on TargetPlatform.android and TargetPlatform.fuchsia.
Implementation
@override
Widget buildOverscrollIndicator(BuildContext context, Widget child, ScrollableDetails details) {
var _platform = getPlatform(context);
if (_platform == TargetPlatform.android || _platform == TargetPlatform.fuchsia) {
return GlowingOverscrollIndicator(
child: child,
//不显示头部水波纹
showLeading: false,
//不显示尾部水波纹
showTrailing: false,
axisDirection: details.direction,
color: Theme.of(context).colorScheme.secondary,
);
} else {
return child;
}
}