Getting Started
Introduction
How this Dart and Flutter knowledge base is organized and how to run its examples.
This site is a personal Dart and Flutter knowledge base. Its content is collected from books, official documentation, and other sources, then organized by topic so it can be looked up at any time.
Runnable examples
Code that is longer than a snippet lives in the examples/ folder of the repository as a runnable project. Every example is a member of a single Dart pub workspace, so one pub get resolves all of them.
Resolve dependencies
Terminal
cd examples
flutter pub get
Run an example
Terminal
cd hello_flutter
flutter run -d chrome
The examples are run locally. The site shows the code but does not embed live demos.
A first example
The hello_flutter example is the default Flutter counter app. Its entry point:
examples/hello_flutter/lib/main.dart
void main() {
runApp(const MyApp());
}