Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
12d0bb1a
Commit
12d0bb1a
authored
Oct 23, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
png替换svg
parent
ea830701
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
11 deletions
+29
-11
icon_follow.svg
images/icon_follow.svg
+6
-0
icon_like.svg
images/icon_like.svg
+3
-0
icon_notice.svg
images/icon_notice.svg
+5
-0
MessagePage.dart
lib/NewMessageModel/page/messagePage/MessagePage.dart
+3
-3
common.dart
lib/NewMessageModel/page/messagePage/common.dart
+12
-8
No files found.
images/icon_follow.svg
0 → 100755
View file @
12d0bb1a
<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>
images/icon_like.svg
0 → 100755
View file @
12d0bb1a
<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>
images/icon_notice.svg
0 → 100755
View file @
12d0bb1a
<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>
lib/NewMessageModel/page/messagePage/MessagePage.dart
View file @
12d0bb1a
...
...
@@ -162,7 +162,7 @@ class _MessagePageState extends BasePage<MessagePage> {
startTime
=
DateTime
.
now
().
millisecondsSinceEpoch
;
});
},
child:
messageTop
(
'images/
message_noti.pn
g'
,
'通知'
,
content
==
''
?
'没有新的通知'
:
content
,
0
)
child:
messageTop
(
'images/
icon_notice.sv
g'
,
'通知'
,
content
==
''
?
'没有新的通知'
:
content
,
0
)
);
},
),
...
...
@@ -179,7 +179,7 @@ class _MessagePageState extends BasePage<MessagePage> {
onClickButton
(
'like'
);
jumpToLikePage
(
context
);
},
child:
messageTop
(
'images/
message_like.pn
g'
,
'Like!'
,
voteCount
==
0
?
'还没有人给你Like!哦~'
:
'有
$voteCount
个人Like!了你'
,
voteCount
)
child:
messageTop
(
'images/
icon_like.sv
g'
,
'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.pn
g'
,
'关注'
,
count
==
0
?
'还没有人给你关注哦~'
:
'有
$count
个人关注了你'
,
count
)
child:
messageTop
(
'images/
icon_follow.sv
g'
,
'关注'
,
count
==
0
?
'还没有人给你关注哦~'
:
'有
$count
个人关注了你'
,
count
)
);
},
),
...
...
lib/NewMessageModel/page/messagePage/common.dart
View file @
12d0bb1a
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment