flutter/examples/stocks
Greg Spencer 797b39e9b2
Creates a new flutter command 'ide-config' and removes *.iml and .idea from tree. (#12958)
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.
2017-11-13 10:55:22 -08:00
..
android Add framework support for system text scale factor. (#12180) 2017-10-02 14:18:18 -07:00
ios Use new project template (#10376) 2017-05-29 14:05:53 +02:00
lib enable lint prefer_single_quotes (#12665) 2017-10-22 18:11:36 +02:00
test Updated I18N API for Flutter (#11497) 2017-08-23 17:07:59 -07:00
test_driver Declare locals final where not reassigned (stocks) (#8573) 2017-03-03 18:05:27 -08:00
.gitignore Updated example gitignore files per the flutter create template (#10251) 2017-05-22 10:31:50 -07:00
pubspec.yaml Update Dart package dependencies (#12829) 2017-11-01 15:28:46 -07:00
README.md Updated stocks example README (#12634) 2017-10-19 16:37:48 -07:00

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.