@override
Widget build(BuildContext context) {
// 文本组件样式 , 可以设置给 Text 文本组件
// 设置字体大小 20, 颜色红色...Card({
Key key,
this.color,
this.elevation,
this.shape,
this.borderOnForeground = true...,
this.margin,
this.clipBehavior,
this.child,
this.semanticContainer = true,
}) : assert...= null),
super(key: key);
代码示例 :
// AlertDialog 对话框 , 该弹窗有一个自动圆角和阴影.../flutter
Flutter 中文社区 : https://flutter.cn/
Flutter 实用教程 : https://flutter.cn/docs/cookbook
Flutter CodeLab