sliding_up_panel icon indicating copy to clipboard operation
sliding_up_panel copied to clipboard

Bug : PanelController must be attached to a SlidingUpPanel

Open LarYoungruu opened this issue 3 years ago • 2 comments

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:

  • Device: Iphone 12 Pro Max
  • OS: IOS
  • Flutter Version: 2.2.2
  • sliding_up_panel Version: 2.0.0+1

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')
    ]
  ),
)

LarYoungruu avatar Jul 23 '21 03:07 LarYoungruu

@leanhro2812 were you ever able to resolve this?

jamesdixon avatar Dec 03 '21 14:12 jamesdixon

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

eerbee avatar Jan 25 '22 03:01 eerbee