Files
FlutterUnit/lib/widget_system/widgets/StatelessWidget/FlutterLogo/node2_style.dart
2022-03-26 16:41:34 +08:00

28 lines
762 B
Dart

/// create by 张风捷特烈 on 2020-03-26
/// contact me by email 1981462002@qq.com
/// 说明:
import 'package:flutter/material.dart';
class FlutterLogoWithText extends StatelessWidget {
const FlutterLogoWithText({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
final Map<FlutterLogoStyle, Color> data = {
FlutterLogoStyle.horizontal: Colors.blue,
FlutterLogoStyle.markOnly: Colors.red,
FlutterLogoStyle.stacked: Colors.green,
};
return Wrap(
spacing: 20,
children: data.keys
.map((FlutterLogoStyle style) => FlutterLogo(
size: 80,
style: style,
textColor: data[style]!,
))
.toList(),
);
}
}