Files
FlutterUnit/lib/views/widgets/StatelessWidget/FlutterLogo/node2_style.dart
2020-05-03 23:05:53 +08:00

33 lines
841 B
Dart

/// create by 张风捷特烈 on 2020-03-26
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 4,
// "priority": 2,
// "name": "样式用于显示文字",
// "subtitle": "【style】 : 样式-3种枚举 【FlutterLogoStyle】\n"
// "【textColor】: 文字颜色 【Color】",
// }
import 'package:flutter/material.dart';
class FlutterLogoWithText extends StatelessWidget {
@override
Widget build(BuildContext context) {
var data = {
FlutterLogoStyle.horizontal:Colors.blue,
FlutterLogoStyle.markOnly:Colors.red,
FlutterLogoStyle.stacked:Colors.green,
};
return Wrap(
spacing: 20,
children: data.keys.map((e) => FlutterLogo(
size: 80,
style: e,
textColor: data[e],
))
.toList(),
);
}
}