forked from lxm_flutter/FlutterUnit
🎨 优化展示组件代码的存在形式,stateless重构完毕
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
/// create by 张风捷特烈 on 2020-03-25
|
||||
/// contact me by email 1981462002@qq.com
|
||||
/// 说明:
|
||||
// {
|
||||
// "widgetId": 36,
|
||||
// "priority": 1,
|
||||
// "name": "Placeholder基础属性",
|
||||
// "subtitle": "【color】: 颜色 【Color】\n"
|
||||
// "【strokeWidth】: 线粗 【double】",
|
||||
// }
|
||||
class CustomPlaceholder extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: 100,
|
||||
height: 100*0.618,
|
||||
child: Placeholder(
|
||||
color: Colors.orangeAccent,
|
||||
strokeWidth: 2,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user