mcrovero / rubber

An elastic material bottom sheet implementation for Flutter.
BSD 2-Clause "Simplified" License
562 stars 88 forks source link

opening with animation #37

Open pishguy opened 5 years ago

pishguy commented 5 years ago

like with drag and drop animation how can i set them for expand and collapse methods?

jonivesto commented 4 years ago

I know it's an old issue. But I solved this by using launchTo() instead of expand()

pishguy commented 4 years ago

I know it's an old issue. But I solved this by using launchTo() instead of expand()

could you give me sample code how can i use that?

jonivesto commented 4 years ago

I know it's an old issue. But I solved this by using launchTo() instead of expand()

could you give me sample code how can i use that?

Here u go: _rubberController.launchTo(0, 0.9);

I highly recommend you to use editor like VSCode, where you can easily inspect the available elements!:)