From 0f247b4dfc900532e41bb74a6b1e0a425d48afbd Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Mon, 24 Jan 2022 12:01:49 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit088=EF=BC=9A=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E5=AE=9E=E7=8E=B0Url=E4=B8=8B=E8=BD=BD=E5=93=8D?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/tabs/page6_download.dart | 72 +++++++++++++++++------------- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/lib/pages/tabs/page6_download.dart b/lib/pages/tabs/page6_download.dart index 8dd3770..6418eb4 100644 --- a/lib/pages/tabs/page6_download.dart +++ b/lib/pages/tabs/page6_download.dart @@ -93,35 +93,43 @@ class _LoginPageState extends State { return Row( mainAxisAlignment: MainAxisAlignment.center, children: [ - Image.asset( - leadPath, - height: ScreenUtil().setHeight(88), - fit: BoxFit.fitHeight, - ), - SizedBox(width: ScreenUtil().setWidth(40)), - Container( - width: ScreenUtil().screenWidth - 150, - // height: ScreenUtil().setHeight(200), - // child: Text( - // title, - // style: TextStyle(fontSize: size, decoration: TextDecoration.underline), - // maxLines: 1, - // overflow: TextOverflow.ellipsis, - // ), - child: TextField( - // textAlignVertical: TextAlignVertical(y: 1.0), - maxLines: 1, - cursorHeight: 60, - style: TextStyle(fontSize: size, decoration: TextDecoration.underline), - controller: TextEditingController(text: title), - readOnly: true, - decoration: InputDecoration( - //contentPadding: EdgeInsets.only(bottom: 16), - // hintText: title, - isCollapsed: true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度 - border: OutlineInputBorder( - borderRadius: BorderRadius.circular(30), borderSide: BorderSide.none), - ), + InkWell( + onTap: onTapFun, + child: Row( + children: [ + Image.asset( + leadPath, + height: ScreenUtil().setHeight(88), + fit: BoxFit.fitHeight, + ), + SizedBox(width: ScreenUtil().setWidth(40)), + Container( + width: ScreenUtil().screenWidth - 150, + // height: ScreenUtil().setHeight(200), + // child: Text( + // title, + // style: TextStyle(fontSize: size, decoration: TextDecoration.underline), + // maxLines: 1, + // overflow: TextOverflow.ellipsis, + // ), + child: TextField( + // textAlignVertical: TextAlignVertical(y: 1.0), + onTap: onTapFun, + maxLines: 1, + cursorHeight: 60, + style: TextStyle(fontSize: size, decoration: TextDecoration.underline), + controller: TextEditingController(text: title), + readOnly: true, + decoration: InputDecoration( + //contentPadding: EdgeInsets.only(bottom: 16), + // hintText: title, + isCollapsed: true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度 + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(30), borderSide: BorderSide.none), + ), + ), + ) + ], ), ), SizedBox(width: ScreenUtil().setWidth(40)), @@ -215,7 +223,7 @@ class _LoginPageState extends State { }, ), Expanded( - child: Text("apk软件下载", + child: Text("软件下载(apk)", style: TextStyle(color: Colors.white, fontSize: 20), textAlign: TextAlign.center, overflow: TextOverflow.ellipsis), @@ -241,7 +249,7 @@ class _LoginPageState extends State { child: Image.asset('assets/images/ybsthbj.png', fit: BoxFit.fitHeight), ), ), - SizedBox(height: 30), + SizedBox(height: 40), Text('扫描二维码下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)), //原文链接:https://blog.csdn.net/houruoyu3/article/details/112314090 @@ -264,7 +272,7 @@ class _LoginPageState extends State { // embeddedImage: AssetImage('assets/images/ybsthbj.png'), ), ), - SizedBox(height: 30), + SizedBox(height: 40), Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)), //账户管理项目 _getUrlRow(download_url,