closeBoxFromAllSides static method
MotionWidgetBuilder
closeBoxFromAllSides({
- required BoxDecoration decoration,
- BoxDecoration? endDecoration,
- EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets? endPadding,
A clipBox that closes from all sides to center.
Implementation
static MotionWidgetBuilder closeBoxFromAllSides({
required BoxDecoration decoration,
BoxDecoration? endDecoration,
EdgeInsets padding = EdgeInsets.zero,
EdgeInsets? endPadding,
}) =>
clipBox(
decoration: decoration,
startAmount: Offset(0, 0) & Size(1, 1),
endAmount: Offset(0.5, 0.5) & Size(0, 0),
endDecoration: endDecoration,
padding: padding,
endPadding: endPadding,
);