From 4438dbbfbabf71cad4736900e4eabd50893fd1c7 Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Mon, 24 Jan 2022 11:44:18 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit087=EF=BC=9A=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=B7=B2=E7=BB=8F=E5=88=9D=E6=AD=A5=E8=B0=83?= =?UTF-8?q?=E6=95=B4Url=E4=B8=8B=E8=BD=BD=E8=A1=8C=E7=9A=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/tabs/page6_download.dart | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/lib/pages/tabs/page6_download.dart b/lib/pages/tabs/page6_download.dart index a80aff9..8dd3770 100644 --- a/lib/pages/tabs/page6_download.dart +++ b/lib/pages/tabs/page6_download.dart @@ -100,14 +100,31 @@ class _LoginPageState extends State { ), SizedBox(width: ScreenUtil().setWidth(40)), Container( - width: ScreenUtil().screenWidth - 130, - child: Text( - title, - style: TextStyle(fontSize: size, decoration: TextDecoration.underline), + 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, - overflow: TextOverflow.ellipsis, + 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)), Image.asset('assets/images/copy.png', height: ScreenUtil().setHeight(88), fit: BoxFit.fitHeight), ],