configureInitialOffset function

dynamic configureInitialOffset(
  1. BuildContext context
)

Implementation

configureInitialOffset(BuildContext context) {
  initialOffset = {
    AnimatedCardDirection.right: Offset(MediaQuery.of(context).size.width, 0),
    AnimatedCardDirection.left: Offset(-MediaQuery.of(context).size.width, 0),
    AnimatedCardDirection.top: Offset(0, -MediaQuery.of(context).size.height),
    AnimatedCardDirection.bottom: Offset(0, MediaQuery.of(context).size.height),
  };
}