forked from lxm_flutter/FlutterUnit
初步优化项目结构
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
/// create by 张风捷特烈 on 2020-04-19
|
||||
/// contact me by email 1981462002@qq.com
|
||||
/// 说明:
|
||||
|
||||
// {
|
||||
// "widgetId": 86,
|
||||
// "name": 'Center基本使用',
|
||||
// "priority": 1,
|
||||
// "subtitle":
|
||||
// "【child】 : 孩子组件 【Widget】",
|
||||
// }
|
||||
class CustomCenter extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
margin: EdgeInsets.all(5),
|
||||
width: 200,
|
||||
height: 100,
|
||||
color: Colors.grey.withAlpha(88),
|
||||
child: Center(
|
||||
child: Container(
|
||||
width: 80,
|
||||
height: 60,
|
||||
color: Colors.cyanAccent,
|
||||
)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user