Files
FlutterUnit/lib/views/widgets/StatelessWidget/Container/node3_alignment.dart
2020-05-03 23:05:53 +08:00

27 lines
675 B
Dart

/// create by 张风捷特烈 on 2020/4/25
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 1,
// "name": '可对子组件进行对齐定位',
// "priority": 3,
// "subtitle": "【alignment】 : 对齐定位 【AlignmentGeometry】",
// }
import 'package:flutter/material.dart';
class ContainerAlignment extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
alignment: Alignment.bottomRight,
width: 200,
height: 200 * 0.618,
color: Colors.grey.withAlpha(88),
child: Icon(
Icons.android,
color: Colors.green,
),
);
}
}