hyzp_ybqx-Commit142:所有页面的违章图片宽高比都统一调整为g_radioImage = 16:10
This commit is contained in:
@@ -23,6 +23,10 @@ import 'UserInfo.dart';
|
|||||||
import 'dioFun.dart';
|
import 'dioFun.dart';
|
||||||
|
|
||||||
////////////////////////////////////////////
|
////////////////////////////////////////////
|
||||||
|
double g_radioImage = 10 / 16; // 违章图片默认宽高比率
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
AudioPlayer playerClick;
|
AudioPlayer playerClick;
|
||||||
AudioPlayer playerClacks;
|
AudioPlayer playerClacks;
|
||||||
AudioPlayer playerVoiceRemind;
|
AudioPlayer playerVoiceRemind;
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class _FhycxPageState extends State<FhycxContentNew> {
|
|||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
||||||
doubleTapStillScale: true, child: Image(image: imageProvider)
|
doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill)
|
||||||
// child: Image(
|
// child: Image(
|
||||||
// image: NetworkImage(
|
// image: NetworkImage(
|
||||||
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
||||||
@@ -268,7 +268,7 @@ class _FhycxPageState extends State<FhycxContentNew> {
|
|||||||
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 * g_radioImage),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
//color: Colors.white,
|
//color: Colors.white,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@@ -281,7 +281,8 @@ class _FhycxPageState extends State<FhycxContentNew> {
|
|||||||
top: ScreenUtil().setHeight(_marginLeft),
|
top: ScreenUtil().setHeight(_marginLeft),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
||||||
|
height: ScreenUtil().setHeight(30 + 1022 * g_radioImage),
|
||||||
child: getNetworkImage(getMediaUrl(_mapGetTsjjGetData['pic_url'])),
|
child: getNetworkImage(getMediaUrl(_mapGetTsjjGetData['pic_url'])),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
||||||
doubleTapStillScale: true, child: Image(image: imageProvider)
|
doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill)
|
||||||
// child: Image(
|
// child: Image(
|
||||||
// image: NetworkImage(
|
// image: NetworkImage(
|
||||||
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
||||||
@@ -550,9 +550,9 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|||||||
Container(
|
Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
//height: ScreenUtil().setHeight(639),
|
//height: ScreenUtil().setHeight(639),
|
||||||
// height: ScreenUtil().setHeight(22 + 1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整
|
height: ScreenUtil().setHeight(22 + 1022 * g_radioImage), // 兴文县的违章图片无法获取,暂时调整
|
||||||
height: ScreenUtil()
|
// height: ScreenUtil()
|
||||||
.setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)),
|
// .setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
//color: Colors.white,
|
//color: Colors.white,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@@ -565,9 +565,10 @@ class _HyshPageState extends State<HyshContentNew> with SingleTickerProviderStat
|
|||||||
top: ScreenUtil().setHeight(11),
|
top: ScreenUtil().setHeight(11),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
height:
|
// height:
|
||||||
ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)),
|
// ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)),
|
||||||
// height: ScreenUtil().setHeight(1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整
|
height: ScreenUtil().setHeight(1022 * g_radioImage),
|
||||||
|
// 兴文县的违章图片无法获取,暂时调整
|
||||||
child: getNetworkImage(getMediaUrl(listGetZpjl[index]['pic_url'])),
|
child: getNetworkImage(getMediaUrl(listGetZpjl[index]['pic_url'])),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
|
|||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
||||||
doubleTapStillScale: true, child: Image(image: imageProvider)
|
doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill)
|
||||||
// child: Image(
|
// child: Image(
|
||||||
// image: NetworkImage(
|
// image: NetworkImage(
|
||||||
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
||||||
@@ -278,7 +278,8 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
|
|||||||
//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),
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
||||||
|
height: ScreenUtil().setHeight(30 + 1022 * g_radioImage),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: Colors.red,
|
// color: Colors.red,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@@ -291,7 +292,8 @@ class _LoginPageState extends State<TsjjContentNew> with SingleTickerProviderSta
|
|||||||
top: ScreenUtil().setHeight(25),
|
top: ScreenUtil().setHeight(25),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
||||||
|
height: ScreenUtil().setHeight(30 + 1022 * g_radioImage),
|
||||||
child: getNetworkImage(getMediaUrl(_mapGetTsjjGetData['pic_url'])),
|
child: getNetworkImage(getMediaUrl(_mapGetTsjjGetData['pic_url'])),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContent> {
|
|||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
||||||
doubleTapStillScale: true, child: Image(image: imageProvider)
|
doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill)
|
||||||
// child: Image(
|
// child: Image(
|
||||||
// image: NetworkImage(
|
// image: NetworkImage(
|
||||||
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
||||||
@@ -232,7 +232,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContent> {
|
|||||||
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 * g_radioImage),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
//color: Colors.white,
|
//color: Colors.white,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@@ -245,7 +245,8 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContent> {
|
|||||||
top: ScreenUtil().setHeight(_marginLeft),
|
top: ScreenUtil().setHeight(_marginLeft),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
||||||
|
height: ScreenUtil().setHeight(30 + 1022 * g_radioImage),
|
||||||
child: getNetworkImage(getMediaUrl(widget.mapZpjl['pic_url'])),
|
child: getNetworkImage(getMediaUrl(widget.mapZpjl['pic_url'])),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
|||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
alignment: Alignment.topCenter,
|
alignment: Alignment.topCenter,
|
||||||
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
imageBuilder: (context, imageProvider) => DragScaleContainer(
|
||||||
doubleTapStillScale: true, child: Image(image: imageProvider)
|
doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill)
|
||||||
// child: Image(
|
// child: Image(
|
||||||
// image: NetworkImage(
|
// image: NetworkImage(
|
||||||
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
// 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'),
|
||||||
@@ -263,7 +263,7 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
|||||||
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 * g_radioImage),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
//color: Colors.white,
|
//color: Colors.white,
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
@@ -276,7 +276,8 @@ class _TodayListZpjlPageState extends State<TodayListZpjlContentNew> {
|
|||||||
top: ScreenUtil().setHeight(_marginLeft),
|
top: ScreenUtil().setHeight(_marginLeft),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: ScreenUtil().setWidth(1022),
|
width: ScreenUtil().setWidth(1022),
|
||||||
height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
// height: ScreenUtil().setHeight(30 + 1022 * _radioImage),
|
||||||
|
height: ScreenUtil().setHeight(30 + 1022 * g_radioImage),
|
||||||
child: getNetworkImage(getMediaUrl(mapZpjl['pic_url'])),
|
child: getNetworkImage(getMediaUrl(mapZpjl['pic_url'])),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user