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(width: width, height: height, child: child);
  }
  return Transform.scale(scale: scale!, child: SizedBox(width: width, height: height, child: child));
}