# Flutter
SDK for building natively compiled apps for mobile, web and desktop
- Follow the conventions of code organization
- Everything is a widget
- each
Widget
has abuild
method, just like react hasrender()
- each
- Material design comes with flutter
Tooling | description |
---|---|
xcode | will give you iOS simulator |
android sdk | android simulator |
# Layouts in Flutter
component | description |
---|---|
Column | top to bottom |
Row | left to riht |
Stack | use stacks |
# Widgets class
StatelessWidget
andStatefulWidget
class hasbuild
methods, which gets re-ccomputed on state change like react.- every build method has a build context passed to it.
# Practical flutter
- press r to hot-reload your new changes on app
keys
reserve states when states change in widget tree, just like how react does it- use only when you have state in widget, or you reorder, create, delete, modify them
- For static content its not required
- Why are stateful widgets defined as two classes in flutter? (opens new window)
# Routes Management
- homeroute is the default route
types of routing
- Ananymous routing
- Named routing
- Generated routing, more professional version
← dart Flutter Plublish →