flutter/examples/layers
Michael Goderbauer 6221d5c709
Refactor tests (#128371)
To make them a little more resilient to changes in the tree shape as the tree will be changing a little bit for multi view.
2023-06-07 03:02:55 +00:00
..
android Fix warning in flutter created project ("package attribute is deprecated" in AndroidManifest) (#123426) 2023-03-29 04:21:03 +00:00
ios Migrate Xcode projects last version checks to Xcode 14.3 (#125827) 2023-05-02 00:06:33 +00:00
lib License update (#45373) 2019-11-27 15:04:02 -08:00
linux Add Windows and Linux support to the 'layers' example (#126105) 2023-05-06 00:45:19 +00:00
macos Refactor tests (#128371) 2023-06-07 03:02:55 +00:00
raw Remove more references to dart:ui.window (#120994) 2023-02-18 01:50:08 +00:00
rendering Remove unnecessary null checks in examples/ (#118848) 2023-01-20 04:06:04 +00:00
services Remove unnecessary null checks in examples/ (#118848) 2023-01-20 04:06:04 +00:00
test Remove uses of deprecated test_api imports (#124732) 2023-04-20 20:55:28 +00:00
widgets Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
windows [Windows] Address feedback for show window comment (#127998) 2023-05-31 23:42:54 +00:00
.metadata Add Windows and Linux support to the 'layers' example (#126105) 2023-05-06 00:45:19 +00:00
analysis_options.yaml Add Windows and Linux support to the 'layers' example (#126105) 2023-05-06 00:45:19 +00:00
pubspec.yaml [flutter_tools] manually roll pub deps (#127447) 2023-05-30 23:34:52 +00:00
README.md ✒ Spell Check All .md Files Related to Flutter 💙 (#61564) 2020-07-22 18:23:47 -07:00

Examples of Flutter's layered architecture

This directory contains several self-contained examples that illustrate Flutter's layered architecture.

  • raw/ These examples show how to program against the lowest layer of the system. They manually receive input packets and construct composited scenes.

  • rendering/ These examples use Flutter's render tree to structure your app using a retained tree of visual objects. These objects coordinate to determine their size and position on screen and to handle events.

  • widgets/ These examples use Flutter's widgets to build more elaborate apps using a reactive framework.

  • services/ These examples use services available in Flutter to interact with the host platform.

To run each example, specify the demo file on the flutter run command line, for example:

flutter run raw/spinning_square.dart
flutter run rendering/spinning_square.dart
flutter run widgets/spinning_square.dart