🎨 当前组件结构重构完毕

This commit is contained in:
toly
2020-04-30 10:10:09 +08:00
parent 60eb0f04fd
commit b58de9d465
105 changed files with 2596 additions and 2477 deletions

View File

@@ -0,0 +1,54 @@
import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020-04-12
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 329,
// "name": 'DividerTheme使用',
// "priority": 1,
// "subtitle":
// "属性参数与Divider类似可以通过DividerTheme.of获取分割线主题数据"
// "也可以为DividerTheme【后代】的分割线设置默认样式包括颜色、粗细、高度等。",
// }
class DividerThemeDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DividerTheme(
data: DividerThemeData(
color: Colors.orange,
thickness: 2,
space: 10,
indent: 10,
endIndent: 10,
),
child: Wrap(
spacing: 10,
children: <Widget>[
Divider(),
Divider(),
Divider(),
Divider(),
Divider(),
Container(
height: 100,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
VerticalDivider(),
VerticalDivider(),
VerticalDivider(),
VerticalDivider(),
VerticalDivider(),
],
),
)
],
),
);
}
}