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

Buttons on collapse doesn't work #255

Open connelevalsam opened 3 years ago

connelevalsam commented 3 years ago

Hi, I have a sliding up panel that uses two widgets, when I slide for the collapse to show, the buttons there don't work:

Align(
            alignment: Alignment.bottomCenter,
            child: SlidingUpPanel(
              controller: _pc,
              color: Colors.transparent,
              minHeight: 300,
              maxHeight: 400,
              panel: requestBody(),
              collapsed: driverBody(),
            ),

        ),

the buttons in requestBody doesn't work

xang555 commented 3 years ago

Same problem. I have TextField in the panel when I focus on it and leave focus then I slide down to collapsed for click button in collapsed but doesn't work

xang555 commented 3 years ago

I was able to fix this by calling setState(() {}) in onPanelClosed. I think this is not a good solution but work! hahaha

connelevalsam commented 3 years ago

I just didn't use it haha