-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Navigator.of(context).pushReplacementNamed occurs Error #69
Comments
Could you provide a minimal code that produce this error? |
While using Navigator.of(context).popAndPushNamed(); inside the onTabChnage() callback throws the above error please check this. The same works fine if pushNamed is been used. It's a common case where developers can try to navigate to another page on tab change right? Correct me if i am using it wrong |
@Blisston you could use GButton |
It does the same issue on onPressed function |
Could you provide a minimal code that produce this error?
…On Fri, 27 May 2022 at 8:59 PM, alexandranb1 ***@***.***> wrote:
It does the same issue on onPressed function
—
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGCEC6II2RAFMZM6XQF7VLVMDBJNANCNFSM5GIMQT5Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19043.1706], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) |
Hi there, I need the full code all in one file, at least it’s runnable, and
able to reproduce the same error
…On Fri, 27 May 2022 at 9:09 PM, alexandranb1 ***@***.***> wrote:
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version
10.0.19043.1706], locale en-US)
• Flutter version 2.10.3
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (3 months ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version
32.1.0-rc1)
And I have a Stateful widget, and in the body I have the clasic GNav and
all of the tabs look like this :
GButton(
icon: Icons.perm_identity_sharp,
text: 'Profile',
onPressed: () {
Navigator.pushReplacement(context,
MaterialPageRoute(builder: (context) => const Profile()));
}
),
—
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGCEC57SDPCFJLLLS36RX3VMDCSFANCNFSM5GIMQT5Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
@sooxt98 this code can give you exceptions |
closing as duplicate #98 |
First of all, I love your designed navigation widget.
However there is a minor error when I use Navigator function
Navigator.of(context).pushReplacementNamed
,this error occurs.
Using
Navigator.of(context).pushNamed
is fine.It doesn't kill an application so it might be a minor problem for now,
but I think it will be a pain later.
The text was updated successfully, but these errors were encountered: