Open
Description
ATTENTION: DO NOT USE THIS FIELD TO ASK SUPPORT QUESTIONS. USE THE PLATFORM CHANNELS FOR THIS. THIS SPACE IS DEDICATED ONLY FOR BUGS DESCRIPTION.
Fill in the template. Issues that do not respect the model will be closed.
Describe the bug
When I click enter on flutter web page on address bar on any screen its goes to previous page.
**Reproduction code
example:
import 'package:flutter/material.dart';
import 'package:get/get.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return GetMaterialApp(
title: 'Flutter Demo',
initialRoute: '/',
getPages: [
GetPage(name: '/', page: () => const MyHomePage(title: 'Flutter Demo Home Page')),
GetPage(name: '/second', page: () => const SecondScreen()),
],
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor:
7E56
Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: (){
Get.toNamed('/second');
},
tooltip: 'Next Route',
child: const Icon(Icons.arrow_forward),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
}
class SecondScreen extends StatelessWidget {
const SecondScreen({super.key});
@override
Widget build(BuildContext context) {
return const Placeholder();
}
}
To Reproduce
Steps to reproduce the behavior:
- Create a new page
- Set named route for the page
- go to new page
- click enter on address bar
- it goes back to previous page. (BUG)
Expected behavior
It should be on same page
Flutter Version:
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/to/macos-android-setup for more details.
Could not find SDK Platform Version: You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to
review and agree to the Xcode and Apple SDKs license.
You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple
SDKs license.
xcrun: error: Failed to open property list '/Users/shriyanshraj/Desktop/projects/getx_test_app/iphonesimulator/SDKSettings.plist'
You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple
SDKs license.
xcrun: error: unable to lookup item 'PlatformVersion' in SDK 'iphonesimulator'
[!] Xcode - develop for iOS and macOS (Xcode 16.2)
✗ Unable to find the iPhone Simulator SDK.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2025.1.1.1)
[✓] VS Code (version 1.100.3)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for Shriyansh’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local
area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for Shriyansh’s Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
! Error: Browsing on the local area network for Shriyansh Raj’s iPad. Ensure the device is unlocked and attached with a cable or associated with the same local
area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network
as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
Getx Version:
4.6.1
Describe on which device you found the bug:
ex: Chrome
Screenrecording
Screen.Recording.2025-06-13.at.1.52.39.PM.mov
Metadata
Metadata
Assignees
Labels
No labels