akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.36k stars 379 forks source link

Top of the panel is not receiving touches #272

Closed nick-beznos closed 2 years ago

nick-beznos commented 2 years ago

I added a button on top of the Scaffold inside of panel and it seems that there's a region of about 50 points on top that does not receive touches.

https://user-images.githubusercontent.com/20222325/135906015-e4b98524-0b58-4bbd-90c6-dc2b1cf1693a.mov

Here's code of the widget I showed:

AnnotatedRegion<SystemUiOverlayStyle>( value: SystemUiOverlayStyle.light, child: SlidingUpPanel( controller: panelController, borderRadius: _radius, isDraggable: false, minHeight: 332, maxHeight: MediaQuery.of(context).size.height - _topPadding - widget.bottomPadding - _navBarHeight, panel: Scaffold( body: Column(children: [ Row(children: [ TextButton(onPressed: () {}, child: Text('Button')), Spacer() ]), Row(children: [ TextButton(onPressed: () {}, child: Text('Button')), Spacer() ]) ]), ), body: Text(''), ))

nick-beznos commented 2 years ago

This happens only when panel is a Scaffold

nick-beznos commented 2 years ago

I tried replacing sliding_up_panel with Stack and turns out Scaffold also has this unresponsive area on top. This might be a Flutter bug.