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

header locks ListView's Scroll if it's given a fullWidth widget. #297

Open Sam-Guru-In-Training opened 2 years ago

Sam-Guru-In-Training commented 2 years ago

Describe the bug If I put any full width wiget in the header then it doesn't show and locks scrolling of the panel's ListView.

To Reproduce


      Container(color: Colors.pink, child:
            IconButton(
      icon: new Icon(
        FontAwesomeIcons.chevronDown,
        color: Colors.grey[300],
      ),
      constraints: BoxConstraints(maxHeight: 24),
      alignment: Alignment.bottomLeft,
      padding: new EdgeInsets.fromLTRB(16, 4, 16, 0),
      onPressed: () {
        slidingPanelController.close();
      },
    )),]);```

Anything of that nature, any parent which tries to size itself to the panel's width will 1. fail. 2. lock scrolling when the panel is opened.

**Expected behavior**
I just wanted a white bar at the top with a single icon on the left that sticks to the top of the user's screen.

**Additional context**
Google maps has a white header bar that follows the user down the scrolling panel.