getEnlargeWrapper method

Widget getEnlargeWrapper(
  1. Widget? child, {
  2. double? width,
  3. double? height,
  4. double? scale,
})

Implementation

Widget getEnlargeWrapper(Widget? child, {double? width, double? height, double? scale}) {
  if (widget.options.enlargeStrategy == CenterPageEnlargeStrategy.height) {
    return SizedBox(child: child, width: width, height: height);
  }
  return Transform.scale(scale: scale!, child: Container(child: child, width: width, height: height));
}