• Home
Name
Date
Size
#Lines
LOC

..--

android/12-May-2024-164122

ios/12-May-2024-905869

lib/12-May-2024-1714

raw/12-May-2024-484402

rendering/12-May-2024-1,053916

services/12-May-2024-410366

test/12-May-2024-420311

widgets/12-May-2024-869760

README.mdD12-May-20241 KiB2921

pubspec.yamlD12-May-20242.1 KiB4030

README.md

1# Examples of Flutter's layered architecture
2
3This directory contains a number of self-contained examples that illustrate
4Flutter's layered architecture.
5
6 * [*raw/*](raw/) These examples show how to program against the lowest layer of
7   the system. They manually receive input packets and construct composited
8   scenes.
9
10 * [*rendering/*](rendering/) These examples use Flutter's render tree to
11   structure your app using a retained tree of visual objects. These objects
12   coordinate to determine their size and position on screen and to handle
13   events.
14
15 * [*widgets/*](widgets/) These examples use Flutter's widgets to build more
16   elaborate apps using a reactive framework.
17
18 * [*services/*](services/) These examples use services available in Flutter to
19   interact with the host platform.
20
21To run each example, specify the demo file on the `flutter run`
22command line, for example:
23
24```
25flutter run raw/spinning_square.dart
26flutter run rendering/spinning_square.dart
27flutter run widgets/spinning_square.dart
28```
29