Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.08 KB

NAVIGATION.md

File metadata and controls

40 lines (28 loc) · 1.08 KB

Navigation

If you want to navigate to ordinary screen like this Settings Screen

Navigator.of(context).push(
  route(const SettingsPage()),
);

For screens opened from bottom to top with layer like this Bond Details

Navigator.of(context).push(
  route.featureDialog(BondInfoPage(btcBondInfo)),
);

Screens like this you have to open only after opening route.featureDialog() Select Language

Navigator.of(context).push(
  route.featureDialogPage(const LanguagePage()),
);

To close FeatureDialog screens, you need to call

BottomFlowDialog.of(context).close();

instead of

Navigator.of(context).pop();

Also this is handled automatically inside MxcAppBar.back, MxcAppBar.close and MxcAppBar.backAndClose or you can use appBarPopHandlerBuilder and appBarCloseHandlerBuilder manually