josiahsrc / dough

This package provides some widgets you can use to create a smooshy UI.
MIT License
703 stars 28 forks source link

Squash Widget for Dough Expansion-Like effects #13

Closed amitverma-cf closed 4 years ago

amitverma-cf commented 4 years ago

I have tried to do something similar to Squash effect or Jelly-like-click, using ScaleTransition and used controller.fling() to keep the current state until it is pressed.

josiahsrc commented 4 years ago

Hi @amitverma-cf 👋

Thanks for taking the time to contribute. The "jelly-like-click" is already supported by Dough. There is a property on the DoughRecipe widget called expansion which scales dough widgets.

If you'd like to use your squash feature in your own projects, I'd recommend creating your own custom package with just this scaling feature. Supporting the squash widget is beyond the scope of this project.