This video introduces the concept of immutability and how to work with the stateless widgets that are the foundation of your app. In this video, learn about the difference between const and final and how to use them going forward.
the basis of our input page for our BMI calculator. … And we saw that when we created our reusable card, … and we extracted it as a separate stateless widget, … that when we create a property, … if we omit the word final, we get a error … that tells us that the reusable card class, … or the class which inherits from, … And in the previous warning, it said of something … called an instance field, and it's important to note … that when people talk about instance variables … or instance fields or properties, … they're actually talking about the same thing. … And all it refers to is just the property that we create … that we can change inside the class, … or when we construct the class, … we can set it to have a different value. … Now, the other term that we saw … in that warning is immutability. … Well what does immutability mean? … Well, mutable means it's changeable, … so immutable means unchangeable. … And the things are unchangeable … when it comes to Flutter development … are pretty much all of our stateless widgets. …
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