Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiamo/flutter-concentric-transition
Flutter plugin for creating views using the concentric transition effect.
https://github.com/tiamo/flutter-concentric-transition
animation concentric dart flutter flutter-app flutter-package flutter-plugin flutter-ui onboarding
Last synced: 3 months ago
JSON representation
Flutter plugin for creating views using the concentric transition effect.
- Host: GitHub
- URL: https://github.com/tiamo/flutter-concentric-transition
- Owner: tiamo
- License: mit
- Created: 2019-11-15T10:59:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-09T10:14:42.000Z (over 2 years ago)
- Last Synced: 2024-08-04T22:11:13.157Z (7 months ago)
- Topics: animation, concentric, dart, flutter, flutter-app, flutter-package, flutter-plugin, flutter-ui, onboarding
- Language: Dart
- Homepage:
- Size: 6.8 MB
- Stars: 223
- Watchers: 1
- Forks: 53
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ➰ Concentric Transition
A Flutter plugin to create views using Concentric Transition Clipper.
Useful for onboarding, page transitions, custom clippers, painters etc.Inspired by [Cuberto - Animated Onboarding Screens](https://dribbble.com/shots/6654320-Animated-Onboarding-Screens)
[](https://github.com/tiamo/flutter-concentric-transition)
[](https://pub.dartlang.org/packages/concentric_transition)
[](https://github.com/tiamo/flutter-concentric-transition)
[](https://opensource.org/licenses/MIT)




## Getting Started
* Add this to your pubspec.yaml
```
dependencies:
concentric_transition: ^1.0.3
```
* Get the package from Pub:
```
flutter packages get
```
* Import it in your file
```
import 'package:concentric_transition/concentric_transition.dart';
```
## Features* 📺 Concentric PageView
* 🕳️ Concentric Clipper
* 📙 Concentric PageRoute## Usage
* Using ConcentricPageView widget
``` dart
import 'package:concentric_transition/concentric_transition.dart';
ConcentricPageView(
colors: [Colors.white, Colors.blue, Colors.red],
itemCount: 1, // null = infinity
physics: NeverScrollableScrollPhysics(),
itemBuilder: (int index, double value) {
return Center(
child: Container(
child: Text('Page $index'),
),
);
},
);
```
* Using ConcentricPageRoute widget
``` dart
Navigator.push(context, ConcentricPageRoute(builder: (ctx) {
return NextPage();
}));
```
* Using ConcentricClipper widget
``` dart
import 'package:concentric_transition/concentric_transition.dart';
ClipPath(
clipper: ConcentricClipper(
progress: 0.1, // from 0.0 to 1.0
reverse: false,
radius: 30.0,
verticalPosition: 0.82,
),
child: Container(
color: Colors.green,
),
)
```
* Check out the complete [Example](https://github.com/tiamo/flutter-concentric-transition/tree/master/example)## Credits
* [Cuberto - Animated Onboarding Screens](https://dribbble.com/shots/6654320-Animated-Onboarding-Screens)
## Maintainers
* [Vlad Korniienko](https://github.com/tiamo)
## License[](https://opensource.org/licenses/MIT)