Commit 12d0bb1a authored by 杜欣's avatar 杜欣

png替换svg

parent ea830701
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M4 26V23C4 21.3431 5.34315 20 7 20H14.3125H19" stroke="#323232" stroke-width="1.5"/>
<path d="M25 18L25 26" stroke="#323232" stroke-width="1.5"/>
<path d="M29 22H21" stroke="#323232" stroke-width="1.5"/>
<circle cx="15" cy="10" r="6.25" stroke="#323232" stroke-width="1.5"/>
</svg>
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.1343 15.3873C27.6219 12.7823 27.6219 8.55874 25.1343 5.95375C22.6468 3.34875 18.6136 3.34875 16.126 5.95375L15 7.13294L13.874 5.95375C11.3864 3.34875 7.35324 3.34875 4.86568 5.95375C2.37811 8.55874 2.37811 12.7823 4.86568 15.3873L15 26L20.0672 20.6936" stroke="#323232" stroke-width="1.5"/>
</svg>
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M22.8782 17.963L25 23H5L7.43697 17.3333V14.5556C7.43697 10.8636 10 7 15 7C20 7 22.563 10.8636 22.563 14.5556" stroke="#323232" stroke-width="1.5"/>
<path d="M17.9785 5.77563C17.9785 4.24269 16.645 3 15 3C13.355 3 12.0215 4.24269 12.0215 5.77563" stroke="#323232" stroke-width="1.5"/>
<path d="M10.5322 27.2H19.4678" stroke="#323232" stroke-width="1.5"/>
</svg>
......@@ -162,7 +162,7 @@ class _MessagePageState extends BasePage<MessagePage> {
startTime = DateTime.now().millisecondsSinceEpoch;
});
},
child: messageTop('images/message_noti.png', '通知', content == '' ? '没有新的通知' : content, 0)
child: messageTop('images/icon_notice.svg', '通知', content == '' ? '没有新的通知' : content, 0)
);
},
),
......@@ -179,7 +179,7 @@ class _MessagePageState extends BasePage<MessagePage> {
onClickButton('like');
jumpToLikePage(context);
},
child: messageTop('images/message_like.png', 'Like!', voteCount == 0 ? '还没有人给你Like!哦~' : '有$voteCount个人Like!了你', voteCount)
child: messageTop('images/icon_like.svg', 'Like!', voteCount == 0 ? '还没有人给你Like!哦~' : '有$voteCount个人Like!了你', voteCount)
);
},
),
......@@ -196,7 +196,7 @@ class _MessagePageState extends BasePage<MessagePage> {
onClickButton('attention');
jumpToFocusPage(context);
},
child: messageTop('images/message_att.png', '关注', count == 0 ? '还没有人给你关注哦~' : '有$count个人关注了你', count)
child: messageTop('images/icon_follow.svg', '关注', count == 0 ? '还没有人给你关注哦~' : '有$count个人关注了你', count)
);
},
),
......
......@@ -23,17 +23,21 @@ Widget messageTop(imgUrl, title, content, count) {
child: Stack(
children: <Widget>[
Container(
padding: EdgeInsets.only(left: ScreenUtil.instance.setWidth(28)),
padding: EdgeInsets.only(top: height, bottom: height),
margin: EdgeInsets.only(
left: ScreenUtil.instance.setWidth(4), top: height, bottom: height),
left: ScreenUtil.instance.setWidth(4)),
width: double.infinity,
decoration: BoxDecoration(
color: ALColors.ColorFFFFFF,
image: DecorationImage(
image: AssetImage(imgUrl),
alignment: Alignment.centerLeft)),
child: Row(
children: <Widget>[
Hero(
tag: "icon",
child: SvgPicture.asset(
imgUrl,
color: ALColors.Color323232,
)),
SizedBox(
width: ScreenUtil.instance.setWidth(8),
),
Text(title,
style: TextStyle(
color: ALColors.Color323232,
......@@ -56,7 +60,7 @@ Widget messageTop(imgUrl, title, content, count) {
getNum(count),
Positioned(
right: ScreenUtil.instance.setWidth(14),
top: ScreenUtil.instance.setHeight(12),
top: ScreenUtil.instance.setHeight(20),
child: Hero(
tag: "arrow_right",
child: SvgPicture.asset(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment