The browser examples are a useful starting point. A local Flutter project gives you access to device features, native configuration and the full package ecosystem.
If the environment check fails, compare its output with the FlutterFever flutter doctor guide before editing project files.
Create a project
Install the SDK using the official Flutter setup instructions . Then check the environment and create a project:
flutter doctor
flutter create small_steps
cd small_steps
flutter run
Read the output of flutter doctor. A missing tool for a platform you do not target is different from a missing requirement for the platform you do need.
Know the main folders
| Location | What belongs there |
|---|---|
| lib/ | Dart application code |
| test/ | Automated tests |
| pubspec.yaml | Dependencies, assets and package metadata |
| android/ and ios/ | Platform-specific projects |
| web/ | Web entry resources and configuration |
Keep platform files under version control. Do not edit generated dependency caches to fix your app.
Reload or restart?
Hot reload updates supported code changes while preserving state. Hot restart starts the Dart application again and resets in-memory state. Changes to native configuration can require stopping and rebuilding the app.
If an initialization change appears to do nothing after reload, ask whether the relevant initialization has actually run again.
Follow a project change from source to device
Start by editing lib/main.dart, not files in a generated build directory. The source describes your app; Flutter’s tools combine it with packages, assets and the selected platform project to create a runnable artifact. Files produced by that process can be regenerated, so edits there are not a reliable way to maintain application behavior.
pubspec.yaml is another source-level contract. After adding a dependency or asset declaration, resolve packages and inspect any error before changing the widget code. A missing asset declaration and an image file with the wrong name can produce similar symptoms but require different corrections.
When a change fails, ask which stage failed: command discovery, dependency resolution, Dart compilation, native build or runtime interaction. Use the verified first-run workflow as a baseline. If a clean project works and your existing project does not, compare their source configuration instead of immediately reinstalling the SDK.
Try it yourself
Create the project, locate lib/main.dart and change a visible label. Then increment a counter, hot reload and hot restart. Note which operation preserves the count.