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
4af04766
Commit
4af04766
authored
Sep 27, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui update
parent
c8bc2d44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
ActivityReportPage.dart
lib/ActivityReportModel/page/ActivityReportPage.dart
+10
-5
No files found.
lib/ActivityReportModel/page/ActivityReportPage.dart
View file @
4af04766
...
...
@@ -510,7 +510,7 @@ class _AnimationCharacterState extends State<AnimationCharacter>
AnimationController
_animationController
;
var
_timer
;
List
peopleList
;
double
margin
=
0
;
double
margin
=
1
0
;
@override
void
initState
()
{
...
...
@@ -548,7 +548,7 @@ class _AnimationCharacterState extends State<AnimationCharacter>
if
(
percent
<
frist
)
{
double
tempPercent
=
percent
/
frist
;
nowValue
=
(
target
*
tempPercent
).
ceil
();
margin
=
ScreenUtil
().
setWidth
(
6.0
+
(
29
*
nowValue
).
ceil
());
margin
=
ScreenUtil
().
setWidth
(
10.0
+
(
25.8
*
nowValue
).
ceil
());
if
(
index
!=
nowValue
)
{
item
[
'url'
]
=
'images/dark_grey_person.png'
;
}
else
{
...
...
@@ -574,9 +574,14 @@ class _AnimationCharacterState extends State<AnimationCharacter>
}
Widget
_peopleViewUI
(
BuildContext
context
,
item
)
{
return
IMAGE
.
Image
.
asset
(
item
[
'url'
],
var
index
=
peopleList
.
indexOf
(
item
);
return
Container
(
margin:
index
!=
0
?
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
12
))
:
EdgeInsets
.
all
(
0
),
child:
IMAGE
.
Image
.
asset
(
item
[
'url'
],
width:
ScreenUtil
().
setWidth
(
item
[
'width'
]),
height:
ScreenUtil
().
setHeight
(
item
[
'height'
]));
height:
ScreenUtil
().
setHeight
(
item
[
'height'
])
)
);
}
@override
...
...
@@ -588,7 +593,7 @@ class _AnimationCharacterState extends State<AnimationCharacter>
children:
<
Widget
>[
_youContainer
(),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
s
paceBetween
,
mainAxisAlignment:
MainAxisAlignment
.
s
tart
,
children:
peopleList
.
map
((
item
)
{
return
_peopleViewUI
(
context
,
item
);
}).
toList
())
...
...
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