fluttercommunity / fluttercommunity/backdrop

cannot paste if backdrop is revealed

Open
#120 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
347
Forks
36
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
I have an implementation where the backdrop is revealed, and takes up half the screen. I am unable to paste (by long holding and waiting for the paste popup). It does popup like normal, but clicking on the paste button does not preform the past task. Sometimes it seems like it clicks behind the paste button.

**Possible Cause**
So what I think is happening is that by pushing down the front layer the guesture detection for the paste popup gets pushed down too. This hypothesis is bolstered by the fact that I can reveal the backlayer by 1 pixel and still successfully click the paste button.

**To Reproduce**
Steps to reproduce the behavior:
Maybe this could be reproduced in other projects, I hope its not an artifact of the specific way I've implemented the Backdrop.

**Screenshots**
works fine when I disable the backdrop reveal
![image](https://user-images.githubusercontent.com/5642485/157947964-c51e50e7-2cf2-49ef-9886-ad7369a2f1bc.png)
paste button just disappears on click when backdrop revealed
![image](https://user-images.githubusercontent.com/5642485/157948598-cffd50dd-715b-4d40-9187-c20311d86d56.png)

**Smartphone (please complete the following information):**
- Device: pixel 3
- OS: android
- Browser emulator

**Additional context**
My particular implementation shouldn't cause this but if it matters, you'll see I instantiate the backdrop once and it remains persistent as the user navigates through the app (`child` being the page widget they are on)

```
...
class RavenMobileApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorObservers: [components.navigator],
initialRoute: '/',
routes: ...
...
builder: (context, child) {
components.navigator.scaffoldContext = context;
return BackdropScaffold(
...
appBar: BackdropAppBar(...),
backLayer: BackLayer(),
frontLayer: Container(
color: Colors.white,
child: child!, // <--- front page navigation
),
);
},
);
}
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.