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

Add HIDDEN to defaultPanelState #126

Open TheRishka opened 4 years ago

TheRishka commented 4 years ago

Right now there is no option to hide SlidingUpPanel by default. It's either closed or opened. Would be nice to have such option. It is related to #100 # but still a bit different request. Lack of default options makes the library suit less for BLOC types of architecture.

akshathjain commented 4 years ago

Will add PanelState.HIDDEN or something similar to either defaultPanelState or create a new property.

antoijo commented 4 years ago

Would be nice to have snap point as default panel state also! and an option to disable the fast swipe which can be annoying in some configurations

pkmangukiya commented 4 years ago

I found a one way to hide SlidingUpPanel by default. that's not a sufficient way but it's a Alternate.

Set a minHeight property as => minHetigh: 0,

pkmangukiya commented 4 years ago

Right now there is no option to hide SlidingUpPanel by default. It's either closed or opened. Would be nice to have such option. It is related to #100 # but still a bit different request. Lack of default options makes the library suit less for BLOC types of architecture.

i found a one way to hide SlidingUpPanel by default. that's not a sufficient way but it's a Alternate.

Set a minHeight property as =>minHeight: 0,

omidraha commented 4 years ago

I have the same issue, I would like the SlidingUpPanel be hidden by default and when user click a button, then open it. I try:

 defaultPanelState: PanelState.CLOSED,

But it's not worked.

Flucadetena commented 4 years ago

Will add PanelState.HIDDEN or something similar to either defaultPanelState or create a new property.

If you added it on the next release that would be awesome!!, really need that functionality.

By the way, super cool and handy plugin. Great Job man!

Mayb3Nots commented 3 years ago

I have added it here #219 While it's not yet merged you may use it by stating in your pubspec.yaml

UPDATE The PR has been moved to #251

  sliding_up_panel: 
    git:
      url: https://github.com/Mayb3Nots/sliding_up_panel
      ref: 783fc25bee8d67f21f999ee1108199dd1b560150
realrk95 commented 3 years ago

Needed this asap. Thanks for the PR. Works well, hope it is merged in main!

sooxt98 commented 3 years ago

@Mayb3Nots ayyyyyy, hi mate, waiting to get merged

williazz commented 2 years ago

Following up on this thread! I too would love a PanelState.HIDDEN feature. As of now there's only open and closed