animatedCard static method
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,
- dynamic 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);
}