Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

animated flip card

animated flip card package lets you add an animated flip card to your flutter app that hide and show more informations.

features

the animatedflipcard widget is built to be an animated card that show or hide more informations about the displayed item.
it takes two images. one for the front face of the card and the other for the back of the card.

recommended

by providing the animatedflipcard widget’s front and back images make sure to set your desired width and height inside the image asset (see the example for more details).

  • how it works?

by pressing the widget card it will flip to the front or the back side of the card depending on the current state.

the package will handle the animation by itself.

animated flip card


getting started

  1. add the latest version of package to your pubspec.yaml (and run dart pub get):
dependencies:
  animated_flip_card: ^1.0.2
  1. import the package and use it in your flutter app.
import 'package:animated_flip_card/animated_flip_card.dart';

usage

there are a number of properties that you can modify:

  • front (the front side image of the card)
  • back (the back side image of the card)

example usage ( complete with all params ):

class myhomepage extends statefulwidget {
  const myhomepage({key? key}) : super(key: key);

  @override
  _myhomepagestate createstate() => _myhomepagestate();
}

class _myhomepagestate extends state<myhomepage> {
  @override
  widget build(buildcontext context) {
    return container(
      alignment: alignment.center,
      child: animatedflipcard(
          front: image.asset(
            'assets/images/front.png',
            width: 250,
            fit: boxfit.contain,
          ),
          back: image.asset(
            'assets/images/back.png',
            width: 250,
            fit: boxfit.contain,
          )),
    );
  }
}
here’s what it looks like:


animated-flip-card.mp4


next goals

we are working on some improvements including:

  • add the possibility to choose the direction of the flipping animation.
  • customize the speed of the flip animation.

issues & feedback

please file an issue! to send feedback or report a bug. thank you!


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.