infinite_card_rotation 1.0.3 infinite_card_rotation: ^1.0.3 copied to clipboard
Flutter package to provide the a card infinite rotations or rotations based on argument provided by the user.
Infinite Card Rotation #
Flutter widget which gives a flip animation to It's child widgets passed to it as the front and back child.
Installation #
- Add the latest version of package to your pubspec.yaml (and run
dart pub get
):
dependencies:
infinite_card_rotation: ^1.0.3
- Import the package and use it in your Flutter App.
import 'package:infinite_card_rotation/infinite_card_rotation.dart';
Preview #
Example: Horizontal infinite rotation on the card.
Example #
FlipCard(
onFlipDone: () {
print('Rotation Completed');
},
front: Container(
height: 200,
width: 200,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.red,
),
child: Icon(Icons.home,size: 50,),
),
back: Container(
height: 200,
width: 200,
child: Icon(Icons.call,size: 50,),
decoration: BoxDecoration(
color: Colors.blue,
shape: BoxShape.circle,),
),
flipCount: 10,
speed: 500,
)