hyzp_ybqx-Commit088:已经实现Url下载响应
This commit is contained in:
@@ -93,35 +93,43 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Image.asset(
|
InkWell(
|
||||||
leadPath,
|
onTap: onTapFun,
|
||||||
height: ScreenUtil().setHeight(88),
|
child: Row(
|
||||||
fit: BoxFit.fitHeight,
|
children: [
|
||||||
),
|
Image.asset(
|
||||||
SizedBox(width: ScreenUtil().setWidth(40)),
|
leadPath,
|
||||||
Container(
|
height: ScreenUtil().setHeight(88),
|
||||||
width: ScreenUtil().screenWidth - 150,
|
fit: BoxFit.fitHeight,
|
||||||
// height: ScreenUtil().setHeight(200),
|
),
|
||||||
// child: Text(
|
SizedBox(width: ScreenUtil().setWidth(40)),
|
||||||
// title,
|
Container(
|
||||||
// style: TextStyle(fontSize: size, decoration: TextDecoration.underline),
|
width: ScreenUtil().screenWidth - 150,
|
||||||
// maxLines: 1,
|
// height: ScreenUtil().setHeight(200),
|
||||||
// overflow: TextOverflow.ellipsis,
|
// child: Text(
|
||||||
// ),
|
// title,
|
||||||
child: TextField(
|
// style: TextStyle(fontSize: size, decoration: TextDecoration.underline),
|
||||||
// textAlignVertical: TextAlignVertical(y: 1.0),
|
// maxLines: 1,
|
||||||
maxLines: 1,
|
// overflow: TextOverflow.ellipsis,
|
||||||
cursorHeight: 60,
|
// ),
|
||||||
style: TextStyle(fontSize: size, decoration: TextDecoration.underline),
|
child: TextField(
|
||||||
controller: TextEditingController(text: title),
|
// textAlignVertical: TextAlignVertical(y: 1.0),
|
||||||
readOnly: true,
|
onTap: onTapFun,
|
||||||
decoration: InputDecoration(
|
maxLines: 1,
|
||||||
//contentPadding: EdgeInsets.only(bottom: 16),
|
cursorHeight: 60,
|
||||||
// hintText: title,
|
style: TextStyle(fontSize: size, decoration: TextDecoration.underline),
|
||||||
isCollapsed: true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
controller: TextEditingController(text: title),
|
||||||
border: OutlineInputBorder(
|
readOnly: true,
|
||||||
borderRadius: BorderRadius.circular(30), borderSide: BorderSide.none),
|
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)),
|
SizedBox(width: ScreenUtil().setWidth(40)),
|
||||||
@@ -215,7 +223,7 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text("apk软件下载",
|
child: Text("软件下载(apk)",
|
||||||
style: TextStyle(color: Colors.white, fontSize: 20),
|
style: TextStyle(color: Colors.white, fontSize: 20),
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
overflow: TextOverflow.ellipsis),
|
overflow: TextOverflow.ellipsis),
|
||||||
@@ -241,7 +249,7 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
child: Image.asset('assets/images/ybsthbj.png', fit: BoxFit.fitHeight),
|
child: Image.asset('assets/images/ybsthbj.png', fit: BoxFit.fitHeight),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 30),
|
SizedBox(height: 40),
|
||||||
Text('扫描二维码下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
Text('扫描二维码下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
||||||
|
|
||||||
//原文链接:https://blog.csdn.net/houruoyu3/article/details/112314090
|
//原文链接:https://blog.csdn.net/houruoyu3/article/details/112314090
|
||||||
@@ -264,7 +272,7 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
// embeddedImage: AssetImage('assets/images/ybsthbj.png'),
|
// embeddedImage: AssetImage('assets/images/ybsthbj.png'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 30),
|
SizedBox(height: 40),
|
||||||
Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
||||||
//账户管理项目
|
//账户管理项目
|
||||||
_getUrlRow(download_url,
|
_getUrlRow(download_url,
|
||||||
|
|||||||
Reference in New Issue
Block a user