How to Create Animated Buttons in Flutter Example

animated-buttons-flutter

In this post you will learn how to create animated buttons in flutter example,

we will be using a flutter package for button animation which is flutter_animated_buttons.

First of al create new flutter project, if you don’t know how to create one then watch the below video.

After creating new flutter project open pupspec.yaml file, and paste these 2 packages in your pupspec.yaml file like below.

  • flutter_animated_button: ^2.0.0
  • google_fonts: ^2.1.0

Now click on pub get, so your will get these packages and after this you can use these packages in

your flutter project.

When the pub get process is completed, then open your main.dart file and paste the below code there.

 

Now run your application and you will get the animated buttons in flutter project on your main screen.

If you have any question then ask me in the comments section below.

Happy coding…

Written by Hilal Ahmad

Leave a Reply

Your email address will not be published. Required fields are marked *