hyzp_ybqx-Commit086:已经初步调整Url下载行的组件

master
WinUser01 4 years ago
parent a8a2e372fc
commit 14f84bfdd9

@ -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,

Loading…
Cancel
Save