sizedWidget method

Widget sizedWidget({
  1. required Widget child,
  2. required AnimationController sizeFactor,
  3. required bool condition,
})

Implementation

Widget sizedWidget(
    {required Widget child,
    required AnimationController sizeFactor,
    required bool condition}) {
  return condition
      ? SizeTransition(
          sizeFactor: sizeFactor,
          child: child,
          axis: Axis.horizontal,
          axisAlignment: -1,
        )
      : Container(
          // child: child,
          );
}