diff --git a/android/app/release/output.json b/android/app/release/output.json index d9e9228..99d2bac 100644 --- a/android/app/release/output.json +++ b/android/app/release/output.json @@ -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":{}}] \ No newline at end of file +[{"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":{}}] \ No newline at end of file diff --git a/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart b/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart index 7b4091a..76c50f0 100644 --- a/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart +++ b/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart @@ -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 { String num; Map mapZpjl; + @override void initState() { _context = context; _widthLeft = _screenWidth / 2.6; @@ -106,6 +109,17 @@ class _TodayListZpjlPageState extends State { 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(); diff --git a/pubspec.yaml b/pubspec.yaml index 70ed8c3..6f506b8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"