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), ],