forked from lxm_flutter/FlutterUnit
32 lines
796 B
Dart
32 lines
796 B
Dart
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// create by 张风捷特烈 on 2020/4/27
|
|
/// contact me by email 1981462002@qq.com
|
|
/// 说明:
|
|
|
|
// {
|
|
// "widgetId": 6,
|
|
// "priority": 1,
|
|
// "name": "用于显示一个图标",
|
|
// "subtitle": "【入参】 :图标数据 【IconData】\n"
|
|
// "【size】 : 大小 【double】\n"
|
|
// "【color】: 颜色 【Color】",
|
|
// }
|
|
|
|
|
|
class CustomIcon extends StatelessWidget {
|
|
const CustomIcon({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Wrap(
|
|
crossAxisAlignment: WrapCrossAlignment.center,
|
|
children: const [
|
|
Icon(Icons.send, color: Colors.orange, size: 60),
|
|
Icon(Icons.android, color: Colors.green, size: 100),
|
|
],
|
|
);
|
|
}
|
|
} |