|
@@ -162,14 +162,24 @@ class _GoodsDetailsImgWidgetContainerState extends State<GoodsDetailsImgWidgetCo |
|
|
|
|
|
|
|
|
/// 骨架视图 |
|
|
/// 骨架视图 |
|
|
Widget _shimmerWidget({double width, double height, double radius = 0}) { |
|
|
Widget _shimmerWidget({double width, double height, double radius = 0}) { |
|
|
return Shimmer.fromColors( |
|
|
|
|
|
baseColor: Colors.grey[300], |
|
|
|
|
|
highlightColor: Colors.grey[100], |
|
|
|
|
|
child: Container( |
|
|
|
|
|
width: width, |
|
|
|
|
|
height: height, |
|
|
|
|
|
decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(radius)), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
//返回骨架视图 |
|
|
|
|
|
// return Shimmer.fromColors( |
|
|
|
|
|
// baseColor: Colors.grey[300], |
|
|
|
|
|
// highlightColor: Colors.grey[100], |
|
|
|
|
|
// child: Container( |
|
|
|
|
|
// width: width, |
|
|
|
|
|
// height: height, |
|
|
|
|
|
// decoration: BoxDecoration(color: Colors.white, borderRadius: BorderRadius.circular(radius)), |
|
|
|
|
|
// ), |
|
|
|
|
|
// ); |
|
|
|
|
|
|
|
|
|
|
|
//修改后返回默认图片 |
|
|
|
|
|
return Image.asset( |
|
|
|
|
|
'assets/images/occupation_map/occupation_map.png', |
|
|
|
|
|
package: 'zhiying_base_widget', |
|
|
|
|
|
width: width, |
|
|
|
|
|
height: height, |
|
|
|
|
|
fit: BoxFit.fill, |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |