disableForApple static method
Constructs an AnimatedEntranceConfig that disables the animation if the theme's platform is TargetPlatform.iOS or TargetPlatform.macOS.
Useful since the page transition animation for Apple platforms conflicts with the default entrance animation.
Implementation
static Widget disableForApple({Key? key, required Widget child}) {
return Builder(
key: key,
builder: (context) {
final platform = context.theme.platform;
return AnimatedEntranceConfig(
enableAnimation: platform != TargetPlatform.iOS &&
platform != TargetPlatform.macOS,
child: child,
);
},
);
}