|
|
|
@ -11,6 +11,7 @@ import 'package:keyboard_avoider/keyboard_avoider.dart';
|
|
|
|
import '../../../components/commonFun.dart';
|
|
|
|
import '../../../components/commonFun.dart';
|
|
|
|
import '../../../components/doJSON.dart';
|
|
|
|
import '../../../components/doJSON.dart';
|
|
|
|
import '../../../components/hyxx_data_handle.dart';
|
|
|
|
import '../../../components/hyxx_data_handle.dart';
|
|
|
|
|
|
|
|
import 'package:flustars/flustars.dart' as flustars; //该组件中有ScreenUtil
|
|
|
|
|
|
|
|
|
|
|
|
// "today": {
|
|
|
|
// "today": {
|
|
|
|
// "total": 4,
|
|
|
|
// "total": 4,
|
|
|
|
@ -43,6 +44,7 @@ class TodayListZpjlContentNew extends StatefulWidget {
|
|
|
|
// String num;
|
|
|
|
// String num;
|
|
|
|
int index;
|
|
|
|
int index;
|
|
|
|
String text;
|
|
|
|
String text;
|
|
|
|
|
|
|
|
|
|
|
|
// Map mapZpjl;
|
|
|
|
// Map mapZpjl;
|
|
|
|
String tsztText;
|
|
|
|
String tsztText;
|
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +91,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
|
|
|
String num;
|
|
|
|
String num;
|
|
|
|
Map mapZpjl;
|
|
|
|
Map mapZpjl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
_context = context;
|
|
|
|
_context = context;
|
|
|
|
_widthLeft = _screenWidth / 2.6;
|
|
|
|
_widthLeft = _screenWidth / 2.6;
|
|
|
|
@ -106,6 +109,17 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
|
|
|
listLen = listTodayList.length;
|
|
|
|
listLen = listTodayList.length;
|
|
|
|
num = '(${widget.index + 1}/${listLen})';
|
|
|
|
num = '(${widget.index + 1}/${listLen})';
|
|
|
|
mapZpjl = listTodayList[widget.index];
|
|
|
|
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(); //得到违章图片
|
|
|
|
imageWztp = getWztp(); //得到违章图片
|
|
|
|
getPreBtn_NextBtn();
|
|
|
|
getPreBtn_NextBtn();
|
|
|
|
try_setState();
|
|
|
|
try_setState();
|
|
|
|
|