Viewing version 1.0.0+5. Open the latest package page.
animations
1.0.0+5Fancy pre-built animations that can easily be integrated into any Flutter application.
Readme
High quality pre-built Animations for Flutter
This package contains pre-canned animations for commonly-desired effects. The animations can be customized with your content and dropped into your application to delight your users.
To see examples of the following animations on a device or simulator:
cd example/
flutter run --release
Material motion for Flutter
Material motion is a set of transition patterns that help users understand and navigate an app. Currently, the following transition patterns are available in this library:
Container transform
The container transform pattern is designed for transitions between UI elements that include a container. This pattern creates a visible connection between two UI elements.
"Container transform gallery - normal speed and slow motion" Examples of the container transform:
- A card into a details page
- A list item into a details page
- A FAB into a details page
- A search bar into expanded search
Shared axis
The shared axis pattern is used for transitions between UI elements that have a spatial or navigational relationship. This pattern uses a shared transformation on the x, y, or z axis to reinforce the relationship between elements.
"Shared axis gallery - normal speed and slow motion" Examples of the shared axis pattern:
- An onboarding flow transitions along the x-axis
- A stepper transitions along the y-axis
- A parent-child navigation transitions along the z-axis
Fade through
The fade through pattern is used for transitions between UI elements that do not have a strong relationship to each other.
"Fade through gallery - normal speed and slow motion" Examples of the fade through pattern:
- Tapping destinations in a bottom navigation bar
- Tapping a refresh icon
- Tapping an account switcher
Fade
The fade pattern is used for UI elements that enter or exit within the bounds of the screen, such as a dialog that fades in the center of the screen.
"Fade gallery - normal speed and slow motion" Examples of the fade pattern:
- A dialog
- A menu
- A snackbar
- A FAB
Changelog
[1.0.0+5] - February 21, 2020
- Fix override analyzer ignore placement.
[1.0.0+4] - February 21, 2020
- Fix a typo in the changelog dates
- Revert use of modern Material text style nomenclature in the example app
to be compatible with Flutter's
stablebranch for the time being. - Add override analyzer ignore in modal.dart for reverseTransitionDuration until Flutter's stable branch contains https://github.com/flutter/flutter/pull/48274.
[1.0.0+3] - February 18, 2020
- Update README.md to better describe Material motion
[1.0.0+2] - February 18, 2020
- Fixes to pubspec.yaml
[1.0.0+1] - February 18, 2020
- Fixes to pubspec.yaml
[1.0.0] - February 18, 2020
- Initial release
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'animations:1.0.0+5'pubspec.yaml
name: animations
description: Fancy pre-built animations that can easily be integrated into any Flutter application.
version: 1.0.0+5
homepage: https://github.com/flutter/packages/tree/master/packages/animations
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
vector_math: ^2.0.8
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 28b7d968…e567dc |
| 1.0.0+1 | Cached · Upstream SHA-256 matched | Download | 31e92670…580c71 |
| 1.0.0+2 | Cached · Upstream SHA-256 matched | Download | f33480b3…025919 |
| 1.0.0+3 | Cached · Upstream SHA-256 matched | Download | 5342e864…846e7b |
| 1.0.0+4 | Cached · Upstream SHA-256 matched | Download | 1c1d5de9…654f3a |
| 1.0.0+5 | Cached · Upstream SHA-256 matched | Download | 2adbc89e…dab190 |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | ff54e53d…cd8e74 |
| 1.1.1 | Cached · Upstream SHA-256 matched | Download | 04c1dcac…ae9d85 |
| 1.1.2 | Cached · Upstream SHA-256 matched | Download | 13447045…3b287c |
| 2.0.0-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | 7aa03ced…14f1c4 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | b8c936e6…79a4f2 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | e519481c…dcf2c3 |
| 2.0.2 | Cached · Upstream SHA-256 matched | Download | b70b084d…c7c5b6 |
| 2.0.3 | Cached · Upstream SHA-256 matched | Download | 1a5baa98…eef224 |
| 2.0.4 | Cached · Upstream SHA-256 matched | Download | 08abd412…a3b552 |
| 2.0.5 | Cached · Upstream SHA-256 matched | Download | 047803c3…295017 |
| 2.0.6 | Cached · Upstream SHA-256 matched | Download | b907674a…748b95 |
| 2.0.7 | Cached · Upstream SHA-256 matched | Download | fe8a6bdc…934164 |
| 2.0.8 | Cached · Upstream SHA-256 matched | Download | ef57563e…b88a70 |
| 2.0.10 | Cached · Upstream SHA-256 matched | Download | 708e4b68…cea6c5 |
| 2.0.11 | Cached · Upstream SHA-256 matched | Download | d3d6dcfb…9911cb |
| 2.1.0 | Cached · Upstream SHA-256 matched | Download | a8031b27…02b427 |
| 2.1.1 | Cached · Upstream SHA-256 matched | Download | 18938cef…9e96ab |
| 2.1.2 | Cached · Upstream SHA-256 matched | Download | a120785b…b30186 |
| 2.2.0 | Cached · Upstream SHA-256 matched | Download | 9cb46921…659e7f |
| 3.0.0 | Cached · Upstream SHA-256 matched | Download | 5ec868ff…7ac5dd |
Dependencies
flutter {
"sdk": "flutter"
}