工程中的代碼: Container(
decoration: BoxDecoration( image: DecorationImage( image: AssetImage('images/1.png'), fit: BoxFit.cover), )
附錄flutter官方提供的加載asset資源例子:
https://github.com/nisrulz/flutter-examples/tree/master/load_local_image
工程中的代碼: Container(
decoration: BoxDecoration( image: DecorationImage( image: AssetImage('images/1.png'), fit: BoxFit.cover), )
附錄flutter官方提供的加載asset資源例子:
https://github.com/nisrulz/flutter-examples/tree/master/load_local_image
1、文本 Text( '社區周邊', textAlign: TextAlign.left, style: TextStyle( color: Colors.black, fontSize: Scree