You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/gallery
Pierre-Louis aed3d34551
Add screenshots, edit README (#319)
5 years ago
..
android [Gallery] Fix directory structure (#312) 5 years ago
assets [Gallery] Bring in Fortnightly banner (#317) 5 years ago
fonts [Gallery] Update desktop Rally for pages that did not have designs before (#314) 5 years ago
ios [Gallery] Fix directory structure (#312) 5 years ago
lib [Gallery] Bring in Fortnightly banner (#317) 5 years ago
linux [Gallery] Fix directory structure (#312) 5 years ago
macos [Gallery] Fix directory structure (#312) 5 years ago
test [Gallery] Fix directory structure (#312) 5 years ago
tool [Gallery] Fix directory structure (#312) 5 years ago
web [Gallery] Fix directory structure (#312) 5 years ago
windows [Gallery] Fix directory structure (#312) 5 years ago
.gitignore [Gallery] Fix directory structure (#312) 5 years ago
.metadata [Gallery] Fix directory structure (#312) 5 years ago
README.md Add screenshots, edit README (#319) 5 years ago
analysis_options.yaml [Gallery] Fix directory structure (#312) 5 years ago
pubspec.lock [Gallery] Fix directory structure (#312) 5 years ago
pubspec.yaml [Gallery] Fix directory structure (#312) 5 years ago
screenshots.md Add screenshots, edit README (#319) 5 years ago

README.md

Flutter Gallery

Flutter Gallery is a resource to help developers evaluate and use Flutter. It is a collection of Material Design & Cupertino 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.

Flutter Gallery

Supported Platforms

Flutter Gallery 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. For example, to run the macOS app:

cd gallery/
flutter config --enable-macos-desktop
flutter create .
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.

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.

Generating localized strings and highlighted code segments

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/:

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