toTransparentPage method

  1. @Deprecated("Avoid use this instance, you should use context.navigator.pushNoTransition(...)")
Future<void> toTransparentPage(
  1. Widget page, {
  2. Duration duration = Duration.zero,
})

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);
}