fullscreenAspectRatioRow method

Widget fullscreenAspectRatioRow({
  1. required Widget child,
  2. required double? fullScreenAspectRatio,
})

0.0.3 版本去掉缓存机制

Implementation

// List<Widget> singleColumnChildren = [];
// Map<int, Map<String, Widget>> screenContextMapChild = {};
// Map<String, List<Widget>> screenContextDirectChildren = {};

Widget fullscreenAspectRatioRow({required Widget child, required double? fullScreenAspectRatio}){
  return fullScreenAspectRatio != null ? SizedBox(
      height: double.infinity,
      child: AspectRatio(aspectRatio: fullScreenAspectRatio, child: child,)) : child;
}