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

Bug : PanelController must be attached to a SlidingUpPanel #262

Open LarYoungruu opened 3 years ago

LarYoungruu commented 3 years ago

Describe the bug As per recommendations from DOC: Screen Shot 2021-07-23 at 10 07 07 AM

To Reproduce Put a button inside Header (_headerPanel()) of SlidingUpPanel and check isPanelOpen to show/hide when Panel opens/closes

Expected behavior Allow using the PanelController inside the Header (inside SlidingUpPanel)

Smartphone:

Sample main.dart

SlidingUpPanel(
  controller: _panelController,
  parallaxOffset: 0.0,
  maxHeight: 800.0,
  minHeight: 300.0,
  renderPanelSheet: false,
  header: _headerPanel(),
  parallaxEnabled: true,
  backdropOpacity: 0.5,
  backdropEnabled: true,
  backdropTapClosesPanel: true,
  backdropColor: Colors.white,
  panel:_initPanel(),
  body: Column(
    children: [
      Text('Hello')
    ]
  ),
)
jamesdixon commented 2 years ago

@leanhro2812 were you ever able to resolve this?

eerbee commented 2 years ago

for me its caused when u have more than 3 sliding panel controller on single screen (i use 3 different panel)