提供了几种构造函数,用于指定图像的各种方式:
new Image, 用于从ImageProvider获取图像.
new Image.asset, 用于使用键从AssetBundle获取图像.
new Image.network..., 用于从URL获取图像.
new Image.file,用于从文件获取图像.
new Image.memory,用于从Uint8List获得图像.... centerSlice, bool matchTextDirection: false, bool gaplessPlayback: false, String package })
创建一个显示从资产包获取的...在材料设计应用程序中,请考虑使用FlatButton,或者如果不合适,至少使用InkWell而不是GestureDetector。...也可以看看:
FlatButton, 没有阴影的材料设计按钮.
DropdownButton, 显示可供选择的选项按钮.
FloatingActionButton, 材料应用程序中的圆形按钮.