Files
FlutterUnit/lib/views/widgets/ProxyWidget/IconTheme/node1_base.dart
2020-05-03 23:05:53 +08:00

34 lines
884 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020-04-12
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 325,
// "name": 'IconTheme使用',
// "priority": 1,
// "subtitle":
// "可以通过IconTheme.of获取图标主题数据也可以为IconTheme【后代】的图标组件设置默认样式包括颜色、透明度、尺寸。",
// }
class IconThemeDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return IconTheme(
data: IconThemeData(
color: Colors.purple,
opacity: 1.0,
size: 30
),
child: Wrap(
spacing: 10,
children: <Widget>[
Icon(Icons.add),
Icon(Icons.ac_unit),
Icon(Icons.g_translate),
Icon(Icons.remove)
],
),
);
}
}