Flutter入门: Container 详解
当前版本 Flutter 3.19.5 Container API 属性 alignment 容器内容相对于父容器的对齐方式,如果非空,容器将扩展以填充其父容器 Container( color: Colors.grey.shade300, height: 300, alignment: Alignment.topLeft, child: Container( color: Colors.green, width: 50, height: 50, ), ), child 容器内容 clipBehavior 容器内容裁剪方式,默认值为 Clip.none Container( height: 3……
继续阅读»»»