
Creates a new (hidden) flutter command 'ide-config' that will create and/or update existing .iml files and some files under the .idea directory, as well as removing existing *.iml files and the .idea directory. It also: * Adds *.iml to the .gitignore * Removes existing .iml files from the repo, and moves them to the packages/flutter_tools/ide_templates/intellij directory. * Adds a flag to ide-config ('--update-templates') that will take any new .iml files in the flutter tree and add them to the existing templates. - If --overwrite is also specified, then all existing templates will also be overwritten with the contents from the flutter tree, and any that have been deleted from the flutter tree will also be removed from the templates. * Added new run configurations for all existing app targets that will now also be automatically added to IntelliJ. * Setting up the environment also includes setting the coding style guidelines and the git VCS. * Note that after this PR lands, Flutter developers will need to run it once to re-create the .iml files and configuration files that have been removed. After this PR lands, .iml files will no longer appear in the untracked files section for git.
Examples of Flutter's layered architecture
This directory contains a number of 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