使用 assets_util 来管理 assets
This commit is contained in:
@@ -32,12 +32,11 @@ class FloatingIconWithWave extends StatelessWidget {
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
// 背景图片
|
||||
Image.asset(
|
||||
'assets/images/ai_hd_clean.png',
|
||||
AssetsUtil.getImageWidget(
|
||||
'ai_hd_clean.png',
|
||||
width: iconSize,
|
||||
height: iconSize,
|
||||
fit: BoxFit.contain,
|
||||
package: AssetsUtil.packageName
|
||||
),
|
||||
// 声波动画,距离底部13px的位置
|
||||
Positioned(
|
||||
|
||||
Reference in New Issue
Block a user