The default Flutter widgets are a great way to cover your basic needs but what happens when you need something even more specific? This video shows you how to create your own custom widgets from the ground up so you can completely control the look and feel of your app.
we could simply set its color property to blue, … and because our widgets are immutable, … the old one gets destroyed … and the new one gets created with the updated properties. … Now, we can also change its style … and that way Flutter can keep our components performant … and keep our apps fast. … So, how do we actually go about composing widgets? … Well, even if we think about … a basic widget such as a container, … it's actually composed of smaller widgets, … such as a LimitedBox with a ConstrainedBox, … with some align, with some Padding, with a DecoratedBox. … So, a whole bunch of widgets that are very basic … and do very simple things … came together to build a container. … And this goes back to that idea of having … very simple, immutable building blocks … that are like small pieces of Lego, … and by combining these simple widgets together … we can build a more complex and more interesting widget. … So, rather than taking a prebuilt large widget, … such as a FloatingActionButton, …
This course was created by London App Brewery. We are pleased to host this content in our library.
- Using Flutter themes
- Refactoring widgets
- Customizing widgets using themes
- Routes and navigating
- Dart maps