![]() 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. |
||
---|---|---|
.. | ||
android | ||
ios | ||
lib | ||
test | ||
test_driver | ||
.gitignore | ||
pubspec.yaml | ||
README.md |
Stocks
Demo app for the material design widgets and other features provided by Flutter.
Building
You can follow these instructions to build the stocks app and install it onto your device.
Prerequisites
If you are new to Flutter, please first follow the Flutter Setup guide.
Building and installing the stocks demo app
cd $FLUTTER_ROOT/examples/stocks
flutter upgrade
flutter run --release
The flutter run --release
command both builds and installs the Flutter app.
Interationalization
This app has been internationalized (just enough to show how it's done). It's an example of how one can do so with the Dart intl package.
The Flutter Internationalization Tutorial covers Flutter app internationalization in general.
See regenerate.md for an explanation
of how the Dart interationalization tools, like
intl_translation:generate_from_arb
, were used to generate
localizations for this app.
Icon
Icon was created using Android Asset Studio: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=0&foreground.space.pad=0&foreColor=607d8b%2C0&crop=0&backgroundShape=square&backColor=fff%2C100&effects=none
From this clipart: https://openclipart.org/detail/30403/tango-go-up Which is public domain.