发布于 4年前

flutter 如何缩放

Transform(
  // 需要缩放的子组件
  child: Container(
    width: 100.0,
    height: 100.0,
    color: Colors.red
  ),
  alignment: Alignment.center,
  transform: new Matrix4.scale(1.5),
)
©2020 edoou.com   京ICP备16001874号-3