[Edge] Buttons can get stuck and not respond to gestures
- Dominant language
- Dart
- Stars
- 179k
- Forks
- 31.1k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. flutter run -d edge
2. Navigate to screen 2
3. Click just outside back button on very edge of the window.
4. Try clicking back button again.
### Expected results
Navigates back to previous screen or
Does not navigate back as click is actually outside the button but still registered.
Back button keeps working.
### Actual results
Does not navigate back to previous screen and button doesn't work anymore.
### Code sample
Code sample
```dart
void main() {
runApp(const MaterialApp(
home: Home(),
));
}
class Home extends StatefulWidget {
const Home({super.key});
@override
State createState() => _HomeState();
}
class _HomeState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Home'),
),
body: Center(
child: ElevatedButton(
onPressed: () => Navigator.of(context)
.push(MaterialPageRoute(builder: (context) => Page2())),
child: Text('Page 2')),
),
);
}
}
class Page2 extends StatefulWidget {
const Page2({super.key});
@override
State createState() => _Page2State();
}
class _Page2State extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Page 2'),
),
body: Center(
child: Text('Page 2'),
));
}
}
```
### Screenshots or Video
Screenshots / Video demonstration
https://github.com/user-attachments/assets/774b8383-4108-4288-8b5d-dbf0b90cdba5
### Logs
Logs
```console
No related logs
```
### Flutter Doctor output
Doctor output
```console
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.4651], locale lv-LV)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2022 17.5.5)
[√] Android Studio (version 2022.2)
[√] VS Code (version 1.91.1)
[√] Connected device (3 available)
[√] Network resources
```
Edge version
``` Version 126.0.2592.113 (Official build) (64-bit)```
Contributor guide
Assessment
This issue has not been assessed yet.