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 381 forks source link

Width of SlidingUpPanel.body should follow its container #147

Open wiradikusuma opened 4 years ago

wiradikusuma commented 4 years ago

Describe the bug Width of SlidingUpPanel.body should follow its container.

To Reproduce Steps to reproduce the behavior:

  1. Examine this library's example project, notice the wrapping widget which is a Stack.
  2. Create a chrome that wraps the stack, with navigation items at the left side.
      Widget _landscape(ctx) => Scaffold(
        body: SafeArea(
          child: Row(
            children: <Widget>[
              Container(
                child: MySideNavigationBar(),
                width: 80,
              ),
              Expanded(child: _stack()),
            ],
          ),
          top: false,
        ),
      );

Expected behavior MySideNavigationBar should not cover the SlidingUpPanel.body.

Screenshots screen

Smartphone

Bazni commented 9 months ago

Hey, I know it's been a long time since you posted this but did you happen to find a way to solve this?

max-anders commented 2 months ago

Same problem, the sliding panel takes up the whole width as if there were no sidebar.

I got it to work by changing the width values (subtracting the sidebar width) in the package when sidebar is activated, by passing a bool to the package