aspectRatio method

Widget aspectRatio({
  1. Key? key,
  2. required double aspectRatio,
})

比例布局

Implementation

Widget aspectRatio({
  Key? key,
  required double aspectRatio,
}) =>
    AspectRatio(
      key: key,
      aspectRatio: aspectRatio,
      child: this,
    );