Creating Custom Reusable Widgets in Flutter

Learn to create custom widgets that are designed with reusability in mind so you could reuse them in your projects or share them with the world as a library. By Emmanuel Okiche.

Leave a rating/review
Download materials
Save for later
Comments
Share

Who is this for?

Flutter developers who want to learn how to create reusable widgets either for their apps or for sharing to the world as library.

Covered concepts

  • Code Refactoring
  • Conditional Rendering
  • Widget Parameters
  • Widget Design Planning

Part 1: Creating Custom Reusable Widgets in Flutter

01
Toggle description

Get introduced to the concept of refactoring widgets and learn about the different ways you could create custom widgets.

Toggle description

Break down the widget’s design and start coding up the different parts that would make up the custom widget.

Toggle description

Learn about how we could use parameters of the widget to customize it so that it could be reusable in different parts of our app.

Toggle description

Break down the design and interaction of our second reusable widget which is an audio widget and start building it.

Toggle description

Add the parameters for the audio widget and code up the logic for the play interaction.

Toggle description

Add the logic that updates the position and dependent data for the audio player’s seek bar.

Toggle description

Generate the corresponding values for the current time and total time labels in the audio widget.