Files
FlutterUnit/lib/widget_system/widgets/ProxyWidget/IconTheme/node1_base.dart
2022-03-26 21:25:40 +08:00

36 lines
941 B
Dart
Raw 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 {
const IconThemeDemo({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return IconTheme(
data: const IconThemeData(
color: Colors.purple,
opacity: 1.0,
size: 30
),
child: Wrap(
spacing: 10,
children: const[
Icon(Icons.add),
Icon(Icons.ac_unit),
Icon(Icons.g_translate),
Icon(Icons.remove)
],
),
);
}
}