Nabeel Parkar

Results 406 comments of Nabeel Parkar

Labeling this issue for further insights from the team

Hello @fredgrott. Could you provide links to where you are referring this from? is it from the API docs on https://api.flutter.dev? Also, could you give an example of what this...

Hello @2shrestha22. Thank you for filing this issue. Can you please provide the following information? - A [complete and minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). Ideally, a single `main.dart` file that can be...

Try to use a global variable for `GoRouter`. Everytime Flutter rebuilds the UI, it will create a new instance of `GoRouter`. You should cache it and reuse the same instance....

@2shrestha22 in the example, `_router` is initialized as a `late final` variable. You are using a method in https://github.com/flutter/flutter/issues/116855#issuecomment-1348556901, and therefore the router is being recreated in each rebuild. Can...

Using the following code sample, it seems to work as expected: Code Sample ```dart import 'package:flutter/material.dart'; import 'package:go_router/go_router.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { MyApp({super.key}); late...

I do not see an issue with go_router. More seems like a logical issue in your code. If so, please post about it in sites like StackOverflow or you can...

Yes but I am unable to reproduce it. Can you give a complete code sample that I can run directly?

Use `pushNamed` instead of `goNamed` and it works. This is because, using `go` or `goNamed` on the first route (`HomePage`) will pop that route and push the new one. This...

@alexbigi Could you provide a full code sample that reproduces this issue? @2shrestha22 The error that @alexbigi had, basically means there is no GoRouter in the context which happens when...