Skip to content

Latest commit

 

History

History
74 lines (64 loc) · 2.39 KB

README.md

File metadata and controls

74 lines (64 loc) · 2.39 KB

Flutter Animations Cheat Sheet

Codemagic build status

List of animations and transitions that you can used in Flutter.

Available as a webpage. The content of the page is searchable.

Building

Last tested version of Flutter that works with this repo is v1.12.13+hotfix.5:

  • Important: Use version otherwise desktop won't be picked up: v1.12.13+hotfix.5

Building for Web

Upgrade flutter to minimum v1.12.13+hotfix.5, enable web compilation and run:

flutter version v1.12.13+hotfix.5
flutter config --enable-web
flutter run -d chrome -v

Building for Desktop

Enable desktop builds by running in the terminal:

flutter config --enable-linux-desktop --enable-macos-desktop --enable-windows-desktop

Linux

  • Add the following to .bash_profile but replace $HOME/flutter/ with path to your Flutter folder
# Add Flutter
export PATH="$PATH:$HOME/flutter/bin"
# Add Dart
export PATH="$PATH:$HOME/flutter/bin/cache/dart-sdk/bin"

Mac

  • Add the following to .bash_profile but replace $HOME/flutter/ with path to your Flutter folder
# Add Flutter
export PATH="$PATH:$HOME/flutter/bin"
# Add Dart
export PATH="$PATH:$HOME/flutter/bin/cache/dart-sdk/bin"
  • Update CocoaPods:
brew upgrade cocoapods
pod setup
gem install cocoapods

Windows

  • MSVC v142 - VS 2019 C++ x64/x86 build tools (v14.23)
  • Windows 10 SDK (10.0.17763.0)

Running on Desktop

Enter flutter-animations in your terminal and run flutter run. You might need to use -d to pick desktop if you have any other device connected.

OR

Open in your ide flutter-animations In IntelliJ/VS Code select appropriate device via device picker and run tha app

Running Flutter Driver tests on Desktop

Windows

flutter packages get
dart .\lib\tests\test.dart -r 800x800

MacOs/Linux

flutter packages get
dart ./lib/tests/test.dart -r 800x800