toTransparentPage method
- @Deprecated("Avoid use this instance, you should use context.navigator.pushNoTransition(...)")
Usually used with a SlidingPanel
Do that:
Navigator.push(
TransparentRoute(builder: (_) => page, duration: duration),
);
Implementation
@Deprecated(
"Avoid use this instance, you should use context.navigator.pushNoTransition(...)")
Future<void> toTransparentPage(
Widget page, {
Duration duration = Duration.zero,
}) async {
await Navigator.of(this).pushNoTransition(page);
}