Closed nick-beznos closed 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(''), ))
This happens only when panel is a Scaffold
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.
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(''), ))