- Introduction
- Basics
- App1 : Elon Musk’s Resume
- App2 : 5K Quotes
- App3 : Calculator
- App4_v1 : Flags Quiz
- Running Apps On Different Devices
- Debbuging
- App5 : Yacht Charter
- App6_v1 : My Books
- Creating responsive and adaptive apps
- App6_v2: My Books
- App7 : Short Vacation
- App8 : Movie Time
- App9 : Schedule Planner
- Shared Preferences
- App10 : Local Weather
- App11 : Discover Tunisia
Widgets
Flutter widgets are built using a modern framework that takes inspiration from React. The central idea is that you build your UI out of widgets. Widgets describe what their view should look like given their current configuration and state.
Widgets are the building blocks of a Flutter app and each widget is an immutable declaration of the UI. We create the widget tree by placing all the widgets togther.
Widgets are the configuration to create elements. Elements are the widgets made concrete, meaning mounted and painted on the screen.
We will learn how to manipulate widgets in next chapter but let's take a look to some different types of widgets :
- Widgets with structuring elements
- Widgets with styling elements
- Widgets with input elements
- Widgets to lay out the UI
- Widgets with animation
- Widgets with elements like assets
- Widgets with interactive elements
- ....
list, grid, button, text ...
color, border, font, weight ...
form, formField, autocomplete ...
column, row, stack, padding ...
hero, slideTransition, fadeTransition, animatedContainer ...
image, icon, assetBundle ...
GestureDetector, Scrollable, Draggable ...
Note:
We can create custom widgets.
We can use nested widgets (widget inside another widget).