hyzp_ybqx-Commit131:已经成功优化区县App推送交警、非黑烟查询详情页面的图片尺寸

master
WinUser01 4 years ago
parent d5a19a32d3
commit d2de09c313

@ -65,6 +65,7 @@ class _FhycxPageState extends State<FhycxContentNew> {
Map _mapTsjjGetTsStatus = {};
@override
void initState() {
super.initState();
@ -111,7 +112,7 @@ class _FhycxPageState extends State<FhycxContentNew> {
_mapTsjjGetTsStatus = await tsjjGetTsStatus(widget.id);
//
flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
if (null != rect) {
_radioImage = rect.height / rect.width;
}

@ -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(

@ -67,6 +67,7 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
Map _mapTsjjGetTsStatus = {};
@override
void initState() {
//Checkbox
eventBus.on<HycsDataAuditSfyc>().listen((event) {
@ -121,10 +122,12 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
_mapTsjjGetTsStatus = await tsjjGetTsStatus(widget.id);
print('_mapTsjjGetTsStatus = $_mapTsjjGetTsStatus');
//
flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
// getMediaUrl(_mapGetTsjjGetData['pic_url'])
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
if (null != rect) {
_radioImage = rect.height / rect.width;
print("rect = $rect_radioImage = $_radioImage");
// rect = Rect.fromLTRB(0.0, 0.0, 4096.0, 3360.0)_radioImage = 0.8203125
}
});
@ -274,9 +277,10 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
width: ScreenUtil().setWidth(1022),
//height: ScreenUtil().setHeight(639),
//height: ScreenUtil().setHeight(22 + 1022 * _radioImage),
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
decoration: BoxDecoration(
//color: Colors.white,
// color: Colors.red,
borderRadius: BorderRadius.all(
Radius.circular(12),
),

@ -64,7 +64,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
#version: 1.4.21+20220319
#version: 1.4.22+20220320
#version: 1.4.23+20220408
version: 1.4.26+20220426
#version: 1.4.26+20220426
version: 1.4.27+20220426
environment:
sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save