pushDynamicScreen<T> static method
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);
}