Flutter Design Hacks, Branding Buttons

Fred Grott
2 min readJan 31, 2023

Let me show you a real easy way to brand buttons in flutter apps.

The Trick

If you define a stateful as your custom button and define your custom button right in the build as a separate variable, you can add the animation to brand your button:

It’s a nice and easy trick to use, and the animation controller provided by the flutter animate package is separate from any other animation controller you might be setting up in your application.

Thoughts

Just one more flutter recipe going into my Flutter Awesome Recipes book.

About Fred Grott

Look, the two things in your way to Flutter Mastery are GDEs only cover the APIs and do not tell you that there are Material Design implementation holes in the Flutter SDK and how to fill those with your custom implementation. AND, all social platforms use AI to only show you a portion of my posts.

By joining medium (yes, I get a cut of that membership fee which I use to update…

--

--