getx icon indicating copy to clipboard operation
getx copied to clipboard

Navigation is not storing browser history

Open naveenbharadwaj19 opened this issue 5 months ago • 5 comments

I've been using GetX navigation for my web app. Previously, it was working fine, but for the past few days, I noticed that clicking the back arrow in my browser exits the whole app. The navigation stack is behaving in a different way. I am using Get version 4.6.1.

flutter doctor -v
[!] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.19045.4046], locale en-IN)
    • Flutter version 3.10.0 on channel stable at C:\Users\bhara\fvm\default
    ! Warning: `flutter` on your path resolves to C:\Users\bhara\fvm\versions\3.10.0\bin\flutter, which is not inside
      your current Flutter SDK checkout at C:\Users\bhara\fvm\default. Consider adding C:\Users\bhara\fvm\default\bin to
      the front of your path.
    ! Warning: `dart` on your path resolves to C:\Users\bhara\fvm\versions\3.10.0\bin\dart, which is not inside your
      current Flutter SDK checkout at C:\Users\bhara\fvm\default. Consider adding C:\Users\bhara\fvm\default\bin to the
      front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (10 months ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
      to perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at D:\Android_SDK
    • Platform android-UpsideDownCake, build-tools 33.0.2
    • ANDROID_HOME = D:\Android_SDK
    • Java binary at: D:\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.2)
    • Android Studio at D:\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)

[√] IntelliJ IDEA Community Edition (version 2023.1)
    • IntelliJ at D:\IntelliJ IDEA
    • Flutter plugin version 73.0.4
    • Dart plugin version 231.8109.91

[√] VS Code (version 1.66.2)
    • VS Code at C:\Users\bhara\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.4046]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 122.0.6261.95
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 119.0.2151.97

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

naveenbharadwaj19 avatar Mar 02 '24 06:03 naveenbharadwaj19

Same problem, with previos version of chrome mi flutter web app, worked fine, but i realice an update of google chrome and the problem began.

some body helpme please

AlfredoEscalona avatar Apr 02 '24 13:04 AlfredoEscalona

The same problem for me. It occurs on Edge also.

pitcairn1987 avatar Apr 04 '24 07:04 pitcairn1987

Have you already tried version 5? This may be a problem because version 4 uses navigator1

jonataslaw avatar Apr 04 '24 16:04 jonataslaw

Yes. Now I've tried on GetX 5 and it's working better, but have some problems now with not refreshing pages when I come again to some page:

  1. Click on 1st item on List in HomePage- going to DetailsPage with id parameter: 1
  2. Going back to HomePage
  3. Click on 2nd item on List in HomePage- DetailPage is opened but again with parameter: 1.

This version has another issues also (PopScope and WillPopScope don't work) so for now is little bit useless for me Version 4 worked fine until some update from Chrome. I tried on this version Chrome (from 2022) : https://www.slimjet.com/chrome/download-chrome.php?file=files%2F104.0.5112.102%2FChromeStandaloneSetup.exe and it's worked fine with version 4. When I updated to newest immediately stop working fine.

Of course all of this problems I noticed only on Flutter Web

pitcairn1987 avatar Apr 04 '24 16:04 pitcairn1987