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

How to push next modal sheet without prior (enclosing) one? [GoRouter] #109

Closed
fujidaiti opened this issue May 4, 2024 Discussed in #108 · 1 comment · Fixed by #113
Closed

How to push next modal sheet without prior (enclosing) one? [GoRouter] #109

fujidaiti opened this issue May 4, 2024 Discussed in #108 · 1 comment · Fixed by #113
Assignees
Labels
bug Something isn't working P1

Comments

@fujidaiti
Copy link
Owner

Discussed in #108

Originally posted by bqubique May 4, 2024

Based on this code block, if I want to directly go to Genre sheet, how would I go for it using GoRouter?
Normally I would expect this to work:

context.go('/intro/genre');

But I'm getting this error:

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during performLayout():
The sheet extent and the dimensions values must be finalized during the layout phase.
'package:smooth_sheets/src/foundation/framework.dart':
Failed assertion: line 125 pos 7: '_extent.hasPixels'

The relevant error-causing widget was:
    NavigationSheet NavigationSheet:file:///Users/blinqipa/Desktop/wolt_test/lib/main.dart:181:16

What would be the correct way to handle this?

@bqubique
Copy link

bqubique commented May 5, 2024

Thanks for the quick fix on this @fujidaiti. Just tested it and it works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
None yet
2 participants