|
|
|
|
@ -77,6 +77,7 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|
|
|
|
String cpysText = '';
|
|
|
|
|
String myCpys = '蓝色';
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
void initState() {
|
|
|
|
|
// TODO: implement initState
|
|
|
|
|
fh_hyc = true;
|
|
|
|
|
@ -222,8 +223,8 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|
|
|
|
Rect rect =
|
|
|
|
|
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(listGetZpjl[i]['pic_url']));
|
|
|
|
|
ratioList.add(rect.height / rect.width);
|
|
|
|
|
print("rect: " + rect.toString());
|
|
|
|
|
print("ratio: " + ratioList[i].toString());
|
|
|
|
|
print("rect: " + rect.toString()); // rect: Rect.fromLTRB(0.0, 0.0, 4096.0, 3360.0)
|
|
|
|
|
print("ratio: " + ratioList[i].toString()); // ratio: 0.8203125
|
|
|
|
|
}
|
|
|
|
|
await getTopTabsMap();
|
|
|
|
|
|
|
|
|
|
@ -275,21 +276,6 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//使用 cached_network_image 插件实现网络图片缓存
|
|
|
|
|
Widget getNetworkImage1(String url) {
|
|
|
|
|
return CachedNetworkImage(
|
|
|
|
|
imageUrl: url,
|
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
|
//placeholder: (context, url) => CircularProgressIndicator(),
|
|
|
|
|
imageBuilder: (context, imageProvider) => PhotoView(
|
|
|
|
|
imageProvider: imageProvider,
|
|
|
|
|
),
|
|
|
|
|
placeholder: (context, url) =>
|
|
|
|
|
getMoreWidget(color: Colors.black38, size: 20.0, strokeWidth: 2.0),
|
|
|
|
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//3、得到违章图片说明信息组件
|
|
|
|
|
Widget getWztpSmxx(int index) {
|
|
|
|
|
return Container(
|
|
|
|
|
|