hyzp_ybqx-Commit088:已经实现Url下载响应

This commit is contained in:
WinUser01
2022-01-24 12:01:49 +08:00
parent 4438dbbfba
commit 0f247b4dfc
+40 -32
View File
@@ -93,35 +93,43 @@ class _LoginPageState extends State<page6_download> {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
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<page6_download> {
},
),
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<page6_download> {
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<page6_download> {
// embeddedImage: AssetImage('assets/images/ybsthbj.png'),
),
),
SizedBox(height: 30),
SizedBox(height: 40),
Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
//账户管理项目
_getUrlRow(download_url,