ui_router 1.0.2 ui_router: ^1.0.2 copied to clipboard
Super Simple, Minimal, Lightweight Router. Easy to use and organize the pages on your application.
Super Simple Router #
https://pub.dev/packages/ui_router
router #
final router = UiRouter(
initialPageId: 'A',
pages: [
UiPage(
id: 'A',
build: (params) => PageA(),
),
UiPage(
id: 'B',
build: (params) => PageB(params['message']),
),
],
);
widget #
router.widget()
push #
router.push('B');
push with params #
router.push('B', params: {'message': 'HELLO😁'});
back to the page #
router.pop();
✨ Using Navigator 2.0 ✨