Flipper constructor
const
Flipper({
- Key? key,
- required Widget front,
- required Widget? back,
- required FlipperController controller,
- double height = 220,
- double width = 324,
- Border? border,
- EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8, horizontal: 12),
- EdgeInsets? margin,
- Color backgroundColor = const Color(0xff0c0c0c),
- BorderRadiusGeometry? borderRadius,
- Gradient? gradient,
- BoxShape shape = BoxShape.rectangle,
- bool showShadow = true,
Implementation
const Flipper(
{super.key,
required this.front,
required this.back,
required this.controller,
this.height=220,
this.width=324,
this.border,
this.padding= const EdgeInsets.symmetric(vertical: 8, horizontal: 12),
this.margin,
this.backgroundColor= const Color(0xff0c0c0c),
this.borderRadius,
this.gradient,
this.shape=BoxShape.rectangle,
this.showShadow= true
}):
assert(shape != BoxShape.circle || borderRadius == null);