Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: New stack in new window #331

Open
KlGleb opened this issue Oct 9, 2023 · 0 comments
Open

Question: New stack in new window #331

KlGleb opened this issue Oct 9, 2023 · 0 comments

Comments

@KlGleb
Copy link

KlGleb commented Oct 9, 2023

Imagine that I have a page with two tabs:

final routes = RouteMap(
  onUnknownRoute: (_) => const Redirect('/'),

  routes: {
    '/': (_) => const TabPage(
          child: HomeScreen(),
          paths: ['/transactions', '/donut'],
        ),
    '/transactions': (_) => const MaterialPage(child: TransactionsScreen()),
    '/donut': (_) => const MaterialPage(child: DonutScreen()),
  },

);

And then I want to add a new page with details:

'/transactions/:id': (info) => MaterialPage(child: TransactionDetailsScreen(id: info.pathParameters['id']!)),

When I open the details page, it looks like this:

untitled.webm

But I want this behaviour:

untitled2.webm

I can achieve this by using '/transaction/:id': instead of '/transactions/:id', but my questions is: is it possible to achieve this another way, not using a separate root flow?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant