Open ShookLyngs opened 3 years ago
I'm experiencing this same issue.
I fixed this by wrapping my collapsed widget in a Visibility widget, and updating its visibility with:
onPanelOpened: () => { setState(() { _collapsedVisible = false; }) }, onPanelClosed: () => { setState(() { _collapsedVisible = true; }) },
I have the same issue from my application the collapsed widget is clickable, even if am on panel widget.
This is my collapsed widget:
This is my panel widget:
When am on panel widget, i can click over sign in or sign up widget. as it's invisible but touchable still.
same issue
fixed I use Getx state management
collapsed
withIgnorePointer
widget panel
with Visibility
widgetin controller
void slidePanel(double value) {
animateOpacity.value = value;
// pannel visibility
if (value == 0.0) {
panelVisibility.value = false;
} else {
panelVisibility.value = true;
}
}
onPanelSlide
onPanelSlide: (position) {
_homecontroler.slidePanel(position);
},
work well for me
fixed I use Getx state management
- Wrap
collapsed
withIgnorePointer
widget- wrap
panel
withVisibility
widget- in controller
void slidePanel(double value) { animateOpacity.value = value; // pannel visibility if (value == 0.0) { panelVisibility.value = false; } else { panelVisibility.value = true; } }
- on
onPanelSlide
onPanelSlide: (position) { _homecontroler.slidePanel(position); },
work well for me
thanks without ignore pointer working fine open panel using tap and closed it using X icon thanks
Describe the bug
In
collapsed
, we have aTextField
. Inpanel
, we have aText
.When the panel is open, the content of
collapse
is hidden, but it's touchable. We can just click where the TextField were, and the soft keyboard will pop in. In this situation, if the content inpanel
is aButton
instead ofText
, theButton
will be untouchable.We can also trigger the same bug on
collapsed
by replacing the content ofpanel
, to a scrollable list. First, we open the panel. Then, we scroll the list ofpanel
. Finally, we close the panel. now the content incollapsed
is untouchable.Code sample