diff --git a/lib/components/commonFun.dart b/lib/components/commonFun.dart index 492f25a..b601d3b 100644 --- a/lib/components/commonFun.dart +++ b/lib/components/commonFun.dart @@ -23,6 +23,10 @@ import 'UserInfo.dart'; import 'dioFun.dart'; //////////////////////////////////////////// +double g_radioImage = 10 / 16; // 违章图片默认宽高比率 + + + AudioPlayer playerClick; AudioPlayer playerClacks; AudioPlayer playerVoiceRemind; diff --git a/lib/pages/Works/HYSH/fhycx_content_new.dart b/lib/pages/Works/HYSH/fhycx_content_new.dart index 97b5a76..47d41c4 100644 --- a/lib/pages/Works/HYSH/fhycx_content_new.dart +++ b/lib/pages/Works/HYSH/fhycx_content_new.dart @@ -138,7 +138,7 @@ class _FhycxPageState extends State { imageUrl: url, alignment: Alignment.topCenter, imageBuilder: (context, imageProvider) => DragScaleContainer( - doubleTapStillScale: true, child: Image(image: imageProvider) + doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill) // child: Image( // image: NetworkImage( // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'), @@ -268,7 +268,7 @@ class _FhycxPageState extends State { width: ScreenUtil().setWidth(1022), //height: ScreenUtil().setHeight(639), //height: ScreenUtil().setHeight(22 + 1022 * _radioImage), - height: ScreenUtil().setHeight(30 + 1022 * _radioImage), + height: ScreenUtil().setHeight(30 + 1022 * g_radioImage), decoration: BoxDecoration( //color: Colors.white, borderRadius: BorderRadius.all( @@ -281,7 +281,8 @@ class _FhycxPageState extends State { top: ScreenUtil().setHeight(_marginLeft), child: Container( 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'])), ), ) diff --git a/lib/pages/Works/HYSH/hysh_content_new.dart b/lib/pages/Works/HYSH/hysh_content_new.dart index b8eaf03..f293a45 100644 --- a/lib/pages/Works/HYSH/hysh_content_new.dart +++ b/lib/pages/Works/HYSH/hysh_content_new.dart @@ -261,7 +261,7 @@ class _HyshPageState extends State with SingleTickerProviderStat imageUrl: url, alignment: Alignment.topCenter, imageBuilder: (context, imageProvider) => DragScaleContainer( - doubleTapStillScale: true, child: Image(image: imageProvider) + doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill) // child: Image( // image: NetworkImage( // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'), @@ -550,9 +550,9 @@ class _HyshPageState extends State with SingleTickerProviderStat Container( width: ScreenUtil().setWidth(1022), //height: ScreenUtil().setHeight(639), - // height: ScreenUtil().setHeight(22 + 1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整 - height: ScreenUtil() - .setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), + height: ScreenUtil().setHeight(22 + 1022 * g_radioImage), // 兴文县的违章图片无法获取,暂时调整 + // height: ScreenUtil() + // .setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), decoration: BoxDecoration( //color: Colors.white, borderRadius: BorderRadius.all( @@ -565,9 +565,10 @@ class _HyshPageState extends State with SingleTickerProviderStat top: ScreenUtil().setHeight(11), child: Container( width: ScreenUtil().setWidth(1022), - height: - ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), - // height: ScreenUtil().setHeight(1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整 + // height: + // ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), + height: ScreenUtil().setHeight(1022 * g_radioImage), + // 兴文县的违章图片无法获取,暂时调整 child: getNetworkImage(getMediaUrl(listGetZpjl[index]['pic_url'])), ), ) diff --git a/lib/pages/Works/HYSH/tsjj_content_new.dart b/lib/pages/Works/HYSH/tsjj_content_new.dart index ccd9ac2..fadb4d6 100644 --- a/lib/pages/Works/HYSH/tsjj_content_new.dart +++ b/lib/pages/Works/HYSH/tsjj_content_new.dart @@ -150,7 +150,7 @@ class _LoginPageState extends State with SingleTickerProviderSta imageUrl: url, alignment: Alignment.topCenter, imageBuilder: (context, imageProvider) => DragScaleContainer( - doubleTapStillScale: true, child: Image(image: imageProvider) + doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill) // child: Image( // image: NetworkImage( // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'), @@ -278,7 +278,8 @@ class _LoginPageState extends State with SingleTickerProviderSta //height: ScreenUtil().setHeight(639), //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 * g_radioImage), decoration: BoxDecoration( // color: Colors.red, borderRadius: BorderRadius.all( @@ -291,7 +292,8 @@ class _LoginPageState extends State with SingleTickerProviderSta top: ScreenUtil().setHeight(25), child: Container( 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'])), ), ) diff --git a/lib/pages/Works/TJXX/today_list_zpjl_content.dart b/lib/pages/Works/TJXX/today_list_zpjl_content.dart index eaab13b..e3d5f33 100644 --- a/lib/pages/Works/TJXX/today_list_zpjl_content.dart +++ b/lib/pages/Works/TJXX/today_list_zpjl_content.dart @@ -102,7 +102,7 @@ class _TodayListZpjlPageState extends State { imageUrl: url, alignment: Alignment.topCenter, imageBuilder: (context, imageProvider) => DragScaleContainer( - doubleTapStillScale: true, child: Image(image: imageProvider) + doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill) // child: Image( // image: NetworkImage( // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'), @@ -232,7 +232,7 @@ class _TodayListZpjlPageState extends State { width: ScreenUtil().setWidth(1022), //height: ScreenUtil().setHeight(639), //height: ScreenUtil().setHeight(22 + 1022 * _radioImage), - height: ScreenUtil().setHeight(30 + 1022 * _radioImage), + height: ScreenUtil().setHeight(30 + 1022 * g_radioImage), decoration: BoxDecoration( //color: Colors.white, borderRadius: BorderRadius.all( @@ -245,7 +245,8 @@ class _TodayListZpjlPageState extends State { top: ScreenUtil().setHeight(_marginLeft), child: Container( 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'])), ), ) 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 76c50f0..4773f18 100644 --- a/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart +++ b/lib/pages/Works/TJXX/today_list_zpjl_content_new.dart @@ -134,7 +134,7 @@ class _TodayListZpjlPageState extends State { imageUrl: url, alignment: Alignment.topCenter, imageBuilder: (context, imageProvider) => DragScaleContainer( - doubleTapStillScale: true, child: Image(image: imageProvider) + doubleTapStillScale: true, child: Image(image: imageProvider, fit: BoxFit.fill) // child: Image( // image: NetworkImage( // 'http://h.hiphotos.baidu.com/zhidao/wh%3D450%2C600/sign=0d023672312ac65c67506e77cec29e27/9f2f070828381f30dea167bbad014c086e06f06c.jpg'), @@ -263,7 +263,7 @@ class _TodayListZpjlPageState extends State { width: ScreenUtil().setWidth(1022), //height: ScreenUtil().setHeight(639), //height: ScreenUtil().setHeight(22 + 1022 * _radioImage), - height: ScreenUtil().setHeight(30 + 1022 * _radioImage), + height: ScreenUtil().setHeight(30 + 1022 * g_radioImage), decoration: BoxDecoration( //color: Colors.white, borderRadius: BorderRadius.all( @@ -276,7 +276,8 @@ class _TodayListZpjlPageState extends State { top: ScreenUtil().setHeight(_marginLeft), child: Container( 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'])), ), )