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.38k stars 378 forks source link

Make panel content not scrollable #218

Closed KarlChow92 closed 3 years ago

KarlChow92 commented 3 years ago

Hey, I face a situation where I want the panel content not to be scrollable. My SlidingUpPanel looks like this:

SlidingUpPanel(
            controller: _panelController,
            backdropTapClosesPanel: false,
            isDraggable: false,
            backdropEnabled: false,
            color: Colors.transparent,
            defaultPanelState: PanelState.OPEN,
            minHeight: 0,
            maxHeight: 400,
            boxShadow: [],
            body: _body(context),
            panel: _panel(context),
          ))

_panel(context) is simply returning a container with some text with a fixed height.

Is there any way to achieve this? The text inside the container is still scrollable.

KarlChow92 commented 3 years ago

Never mind! I gave a fixed height to my container. By removing that it fixed the issue!