pushDynamicScreen<T> static method

Future<T?> pushDynamicScreen<T>(
  1. BuildContext context, {
  2. required Route<T> screen,
  3. bool? withNavBar,
})

Once you push a screen with withNavBar set to false, Navigation bar cannot appear in screens pushed from here forward unless you define a new PersistentTabView on those screens.

Implementation

static Future<T?> pushDynamicScreen<T>(
  final BuildContext context, {
  required final Route<T> screen,
  bool? withNavBar,
}) {
  withNavBar ??= true;
  return Navigator.of(context, rootNavigator: !withNavBar).push<T>(screen);
}