|
|
|
@ -67,6 +67,7 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
|
|
|
|
|
|
|
|
|
|
|
|
Map _mapTsjjGetTsStatus = {};
|
|
|
|
Map _mapTsjjGetTsStatus = {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
void initState() {
|
|
|
|
//黑烟审核推送交警Checkbox改变事件
|
|
|
|
//黑烟审核推送交警Checkbox改变事件
|
|
|
|
eventBus.on<HycsDataAuditSfyc>().listen((event) {
|
|
|
|
eventBus.on<HycsDataAuditSfyc>().listen((event) {
|
|
|
|
@ -121,10 +122,12 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
|
|
|
|
_mapTsjjGetTsStatus = await tsjjGetTsStatus(widget.id);
|
|
|
|
_mapTsjjGetTsStatus = await tsjjGetTsStatus(widget.id);
|
|
|
|
print('_mapTsjjGetTsStatus = $_mapTsjjGetTsStatus');
|
|
|
|
print('_mapTsjjGetTsStatus = $_mapTsjjGetTsStatus');
|
|
|
|
|
|
|
|
|
|
|
|
// 获取网络图片尺寸
|
|
|
|
// 获取网络图片尺寸,getMediaUrl(_mapGetTsjjGetData['pic_url'])
|
|
|
|
flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
|
|
|
|
await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) {
|
|
|
|
if (null != rect) {
|
|
|
|
if (null != rect) {
|
|
|
|
_radioImage = rect.height / rect.width;
|
|
|
|
_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),
|
|
|
|
width: ScreenUtil().setWidth(1022),
|
|
|
|
//height: ScreenUtil().setHeight(639),
|
|
|
|
//height: ScreenUtil().setHeight(639),
|
|
|
|
//height: ScreenUtil().setHeight(22 + 1022 * _radioImage),
|
|
|
|
//height: ScreenUtil().setHeight(22 + 1022 * _radioImage),
|
|
|
|
|
|
|
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
|
|
|
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
|
|
|
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
//color: Colors.white,
|
|
|
|
// color: Colors.red,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(12),
|
|
|
|
Radius.circular(12),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|