commit | bb070c3323b5ad68e661311368220461644e1dc5 | [log] [tgz] |
---|---|---|
author | Per Classon <perc@google.com> | Tue Jan 07 16:13:10 2020 +0100 |
committer | GitHub <noreply@github.com> | Tue Jan 07 16:13:10 2020 +0100 |
tree | 27e955ae6bb2ec951a18820779df0bd96099d166 | |
parent | ecbdb41633596ae15a25b5785fee264ecbd331ee [diff] |
[Gallery] Remove MaterialApp for demo screen for simplification (#197) * Remove MaterialApp for demo screen for simplification Former-commit-id: b1c94022fa895910d056b3d954247a0677b27685
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.
The Flutter Gallery application has been built to support multiple platforms. This includes:
That being said, extra steps must be taken to enable Desktop support. For example, to run the macOS app:
cd gallery/ flutter config --enable-macos-desktop flutter create --org io.flutter . flutter run -d macos
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.
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.
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.
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.
To generate localized strings or highlighted code segments, make sure that you have grinder installed. You can install it by getting the packages in samples/gallery/gallery/
:
flutter pub get
To generate localized strings (see separate README for more details):
flutter pub run grinder l10n
To generate code segments (see separate README for more details):
flutter pub run grinder update-code-segments