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) {
// When modifying this function, consider modifying the implementation in
// the base class as well.
switch (getPlatform(context)) {
case TargetPlatform.iOS:
case TargetPlatform.linux:
case TargetPlatform.macOS:
case TargetPlatform.windows:
return child;
case TargetPlatform.android:
case TargetPlatform.fuchsia:
return GlowingOverscrollIndicator(
child: child,
axisDirection: details.direction,
color: Theme.of(context).colorScheme.secondary,
);
}
}