hyzp_ybqx-Commit086:已经初步调整Url下载行的组件
This commit is contained in:
@@ -83,6 +83,37 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget _getUrlRow(title,
|
||||||
|
{String leadPath = '',
|
||||||
|
Color leadColor,
|
||||||
|
onTapFun = onNullFun,
|
||||||
|
onLongPressFun = onNullFun,
|
||||||
|
size = 16.0,
|
||||||
|
bool bBadge = false}) {
|
||||||
|
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 - 130,
|
||||||
|
child: Text(
|
||||||
|
title,
|
||||||
|
style: TextStyle(fontSize: size, decoration: TextDecoration.underline),
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Image.asset('assets/images/copy.png',
|
||||||
|
height: ScreenUtil().setHeight(88), fit: BoxFit.fitHeight),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
List<Widget> _listViewUser = [];
|
List<Widget> _listViewUser = [];
|
||||||
|
|
||||||
Color _greenColor = Color.fromRGBO(36, 206, 192, 1); //绿色
|
Color _greenColor = Color.fromRGBO(36, 206, 192, 1); //绿色
|
||||||
@@ -219,7 +250,7 @@ class _LoginPageState extends State<page6_download> {
|
|||||||
SizedBox(height: 30),
|
SizedBox(height: 30),
|
||||||
Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
Text('网址下载', textAlign: TextAlign.center, style: TextStyle(fontSize: 20)),
|
||||||
//账户管理项目
|
//账户管理项目
|
||||||
_getListTile(download_url,
|
_getUrlRow(download_url,
|
||||||
size: 20.0,
|
size: 20.0,
|
||||||
leadPath: 'assets/images/download.png',
|
leadPath: 'assets/images/download.png',
|
||||||
leadColor: _deepBlueColor,
|
leadColor: _deepBlueColor,
|
||||||
|
|||||||
Reference in New Issue
Block a user