hyzp_ybqx-Commit132:版本号更新为version: 1.4.28+20220426。已经成功优化区县App今日统计记录详情页面的图片尺寸
This commit is contained in:
@@ -1 +1 @@
|
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220426,"versionName":"1.4.26","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":20220426,"versionName":"1.4.27","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
@@ -11,6 +11,7 @@ import 'package:keyboard_avoider/keyboard_avoider.dart';
|
||||
import '../../../components/commonFun.dart';
|
||||
import '../../../components/doJSON.dart';
|
||||
import '../../../components/hyxx_data_handle.dart';
|
||||
import 'package:flustars/flustars.dart' as flustars; //该组件中有ScreenUtil
|
||||
|
||||
// "today": {
|
||||
// "total": 4,
|
||||
@@ -43,6 +44,7 @@ class TodayListZpjlContentNew extends StatefulWidget {
|
||||
// String num;
|
||||
int index;
|
||||
String text;
|
||||
|
||||
// Map mapZpjl;
|
||||
String tsztText;
|
||||
|
||||
@@ -89,6 +91,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
||||
String num;
|
||||
Map mapZpjl;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
_context = context;
|
||||
_widthLeft = _screenWidth / 2.6;
|
||||
@@ -106,6 +109,17 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
||||
listLen = listTodayList.length;
|
||||
num = '(${widget.index + 1}/${listLen})';
|
||||
mapZpjl = listTodayList[widget.index];
|
||||
|
||||
// 获取网络图片尺寸,getMediaUrl(_mapGetTsjjGetData['pic_url'])
|
||||
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(mapZpjl['pic_url'])).then((rect) {
|
||||
if (null != rect) {
|
||||
_radioImage = rect.height / rect.width;
|
||||
print("rect = $rect,_radioImage = $_radioImage");
|
||||
// rect = Rect.fromLTRB(0.0, 0.0, 0.0, 0.0),_radioImage = NaN
|
||||
// rect = Rect.fromLTRB(0.0, 0.0, 4096.0, 3360.0),_radioImage = 0.8203125
|
||||
}
|
||||
});
|
||||
|
||||
imageWztp = getWztp(); //得到违章图片
|
||||
getPreBtn_NextBtn();
|
||||
try_setState();
|
||||
|
||||
+2
-1
@@ -65,7 +65,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
#version: 1.4.22+20220320
|
||||
#version: 1.4.23+20220408
|
||||
#version: 1.4.26+20220426
|
||||
version: 1.4.27+20220426
|
||||
#version: 1.4.27+20220426
|
||||
version: 1.4.28+20220426
|
||||
|
||||
environment:
|
||||
sdk: ">=2.7.0 <3.0.0"
|
||||
|
||||
Reference in New Issue
Block a user