Comments (4)
use auto_route it is better
from flutter.
When GoRoute call an unwanted build, the value in state.uri is not the same as the value in GoRouter.of(context).routeInformationProvider.value.uri. state.uri seems to have a wrong value ?
GoRoute(
path: 'step1',
builder: (BuildContext context, GoRouterState state) {
debugPrint('GoRoute: builder step 1');
// when unwanted rerender, the value in state.uri is not the same as the value in GoRouter.of(context).routeInformationProvider.value.uri
debugPrint("GO ROUTER STATE > ${state.uri}"); // flutter: GO ROUTER STATE > /step1?param=Hello%20World
debugPrint(
"GO ROUTER > ${GoRouter.of(context).routeInformationProvider.value.uri}"); // flutter: GO ROUTER > /step2
final justAQueryParam =
state.uri.queryParameters['param'] ?? 'No params';
return Step1ScreenWithParam(justAQueryParam: justAQueryParam);
},
),
from flutter.
Hi @fwemaere, this is working as intended, please see a similar issue filed before at #132049 and the response at #132049 (comment). Closing this as a duplicate of #132049.
When GoRoute call an unwanted build, the value in state.uri is not the same as the value in GoRouter.of(context).routeInformationProvider.value.uri. state.uri seems to have a wrong value ?
This looks similar to #147367. Please take a look to see if it is. If it's not similar to your case, please file a new issue. Thanks!
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- GPU access using engine built with `--disable-desktop-embeddings` HOT 2
- Replace Moto G4's attached to Windows prod hosts with mokey's HOT 4
- `Unexpected null value` error appears when running multiView on Flutter Web HOT 14
- mac-8 lost external connection phone device. HOT 2
- Navigating from A to B (which has a nav bar) - HOW? (Typed-routing) HOT 3
- linux-35 lost external connection phone device. HOT 2
- Flutter web can not run in flutter 3.24 HOT 9
- Using Platform Views simultaneously in multiple engines causes a crash. HOT 6
- Assets/ should include all subfolders HOT 14
- AppBar leading back button's icon is rendered incorrectly in RTL layout HOT 3
- EXCEPTION CAUGHT BY WIDGETS LIBRARY HOT 5
- Black border appears in Windows window layering penetration HOT 3
- [version 3.24] ThemeData's hintColor not working in TextField, which was working in version 3.22.x HOT 6
- Flutter create bundle identifier should be the same across all platforms HOT 4
- [Impeller] Shaders on a Transform throws: Requested texture size (x, y) exceeds maximum supported size of (8192, 8192) HOT 3
- Flutter Web throws "TypeError: Cannot read properties of undefined" in counter app HOT 13
- CupertinoListTile animations are not running when pressing longer HOT 3
- Add onChanged and autoPlay to CarouselView HOT 4
- [version 3.24] checkerboardOffscreenLayers not working in 3.24, which was working in version 3.22.x HOT 5
- [Impeller] [Android] Native views not rendering on some devices HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.