animatedCard static method

Widget animatedCard({
  1. SpringController? springController,
  2. required double fromWidth,
  3. required double toWidth,
  4. required double fromHeight,
  5. required double toHeight,
  6. Color fromColor = Colors.white,
  7. Color toColor = Colors.white,
  8. double fromElevation = 0.0,
  9. double toElevation = 10.0,
  10. Color fromShadowColor = Colors.black,
  11. Color toShadowColor = Colors.black,
  12. Duration widthDuration = const Duration(seconds: 1),
  13. Duration heightDuration = const Duration(seconds: 1),
  14. Duration colorDuration = const Duration(seconds: 1),
  15. Duration elevationDuration = const Duration(seconds: 1),
  16. Duration shadowDuration = const Duration(seconds: 1),
  17. Duration delay = const Duration(seconds: 0),
  18. Curve curve = Curves.easeInOut,
  19. Clip? clip,
  20. bool borderOnForeground = true,
  21. EdgeInsets? margin,
  22. ShapeBorder? shape,
  23. bool semanticContainer = true,
  24. required Widget child,
  25. dynamic animStatus(
    1. AnimStatus
    )?,
})

returns Animated Card widget

Implementation

static Widget animatedCard({
  SpringController? springController,
  required double fromWidth,
  required double toWidth,
  required double fromHeight,
  required double toHeight,
  Color fromColor = Colors.white,
  Color toColor = Colors.white,
  double fromElevation = 0.0,
  double toElevation = 10.0,
  Color fromShadowColor = Colors.black,
  Color toShadowColor = Colors.black,
  Duration widthDuration = const Duration(seconds: 1),
  Duration heightDuration = const Duration(seconds: 1),
  Duration colorDuration = const Duration(seconds: 1),
  Duration elevationDuration = const Duration(seconds: 1),
  Duration shadowDuration = const Duration(seconds: 1),
  Duration delay = const Duration(seconds: 0),
  Curve curve = Curves.easeInOut,
  Clip? clip,
  bool borderOnForeground = true,
  EdgeInsets? margin,
  ShapeBorder? shape,
  bool semanticContainer = true,
  required Widget child,
  Function(AnimStatus)? animStatus,
}) {
  return AnimatedCard(
      springController: CustomMethods.checkNullController(springController),
      delay: delay,
      curve: curve,
      fromWidth: fromWidth,
      toWidth: toWidth,
      fromHeight: fromHeight,
      toHeight: toHeight,
      fromColor: fromColor,
      toColor: toColor,
      fromElevation: fromElevation,
      toElevation: toElevation,
      fromShadowColor: fromShadowColor,
      toShadowColor: toShadowColor,
      widthDuration: widthDuration,
      heightDuration: heightDuration,
      colorDuration: colorDuration,
      elevationDuration: elevationDuration,
      shadowDuration: shadowDuration,
      borderOnForeground: borderOnForeground,
      clip: clip,
      margin: margin,
      semanticContainer: semanticContainer,
      shape: shape,
      animStatus: animStatus,
      child: child);
}