Flutter_Fundamentals
Flutter_Fundamentals
1. Introduction to Flutter
2. Flutter Architecture
Flutter apps are built using widgets. Everything in Flutter is a widget, including layout models and UI
elements.
The entry point of a Flutter app is the main() function, which calls runApp() to start the app.
Example:
void main() {
runApp(MyApp());
4. Widgets
Widgets are the building blocks of a Flutter app. There are two types:
Example:
@override
home: Scaffold(
),
);
5. Layouts
Flutter uses widgets for layout as well, such as Column, Row, Container, Padding, etc.
Example:
Column(
children: [
Text('Item 1'),
Text('Item 2'),
],
6. Navigation
Example:
Navigator.push(
context,
7. State Management
- setState()
- Provider
- Riverpod
- Bloc
8. Hot Reload
Flutter supports hot reload, which allows developers to see changes instantly without restarting the
app.
Flutter has a rich ecosystem of packages available through pub.dev to extend functionality (e.g.,
- flutter run