What I learned today in flutter #2 !!

in hive-185836 •  3 years ago 

Screen Shot 2021-06-06 at 10.03.42 PM.png

So this is what i did today. Basically we needed to trigger some event when the button is pressed for three seconds.

To create this I've used GestureDetector. Under gesturedetector we have onTapDown Function which can be used to sense when the button was released after being pressed.

Lets dive to code.

carbon.png

Packages that i used to create this screen:
velocity_x:

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!