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