Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
android/ | 12-May-2024 | - | 164 | 122 | ||
ios/ | 12-May-2024 | - | 905 | 869 | ||
lib/ | 12-May-2024 | - | 17 | 14 | ||
raw/ | 12-May-2024 | - | 484 | 402 | ||
rendering/ | 12-May-2024 | - | 1,053 | 916 | ||
services/ | 12-May-2024 | - | 410 | 366 | ||
test/ | 12-May-2024 | - | 420 | 311 | ||
widgets/ | 12-May-2024 | - | 869 | 760 | ||
README.md | D | 12-May-2024 | 1 KiB | 29 | 21 | |
pubspec.yaml | D | 12-May-2024 | 2.1 KiB | 40 | 30 |
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