Merge in the flutter gallery (#176)

Former-commit-id: 563e7e6d96deae9e15737fcd9066820639227f16
734 files changed
tree: 804db0d629fbdaeae46e8b84b5a3c29735ac014f
  1. codeviewer_cli/
  2. gallery/
  3. l10n_cli/

Flutter Gallery

Flutter Gallery is a resource to help developers evaluate and use Flutter. It is a collection of material design widgets, behaviors, and vignettes implemented with Flutter. We often get asked how one can see Flutter in action, and this gallery demonstrates what Flutter provides and how it behaves in the wild.

Supported Platforms

The Flutter Gallery application has been built to support multiple platforms. This includes:

  • Android
  • iOS
  • web
  • macOS
  • Linux
  • Windows

That being said, extra steps must be taken to enable Desktop support.

Additionally, the UI adapts between mobile and desktop layouts regardless of the platform it runs on. This is determined based on window size as outlined in adaptive.dart.

To include a new splash animation

  1. Convert your animation to a .gif file. Ideally, use a background color of 0xFF030303 to ensure the animation blends into the background of the app.

  2. Add your new .gif file to the assets directory under assets/splash_effects. Ensure the name follows the format splash_effect_$num.gif. The number should be the next number after the current largest number in the repository.

  3. Update the map _effectDurations in splash.dart to include the number of the new .gif as well as its estimated duration. The duration is used to determine how long to display the splash animation at launch.