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
8eb118fe
Commit
8eb118fe
authored
Sep 27, 2019
by
杜欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui update
parent
b520118e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
ActivityReportPage.dart
lib/ActivityReportModel/page/ActivityReportPage.dart
+28
-20
No files found.
lib/ActivityReportModel/page/ActivityReportPage.dart
View file @
8eb118fe
...
...
@@ -12,7 +12,7 @@ import 'package:gmalpha_flutter/ActivityReportModel/page/ActivityReportModel.dar
import
'package:gmalpha_flutter/commonModel/base/Temp.dart'
;
import
'package:gmalpha_flutter/commonModel/ui/ALColors.dart'
;
final
_goldenColor
=
Color
(
0xFFB
59C64
);
final
_goldenColor
=
Color
(
0xFFB
9A689
);
class
ActivityReportPage
extends
StatefulWidget
{
ActivityReportModel
_model
;
...
...
@@ -44,7 +44,7 @@ class ActivityReportState extends State<ActivityReportPage> {
appBar:
AppBar
(
title:
Text
(
''
),
centerTitle:
true
,
leading:
IMAGE
.
GestureDetector
(
leading:
GestureDetector
(
onTap:
(){
Navigator
.
pop
(
context
,
""
);
jumpToSearch
();
...
...
@@ -81,6 +81,7 @@ class ActivityReportState extends State<ActivityReportPage> {
return
errorItem
(
data
.
data
.
message
);
}
return
Container
(
color:
Color
(
0xfff5f5f5
),
padding:
EdgeInsets
.
only
(
left:
ScreenUtil
().
setWidth
(
16
),
right:
ScreenUtil
().
setWidth
(
16
)),
...
...
@@ -169,8 +170,7 @@ class TopCard extends StatelessWidget {
style:
TextStyle
(
fontSize:
11
,
color:
_goldenColor
,
fontWeight:
FontWeight
.
bold
,
height:
2
),
fontWeight:
FontWeight
.
bold
),
)
],
));
...
...
@@ -196,8 +196,7 @@ class TopCard extends StatelessWidget {
style:
TextStyle
(
fontSize:
11
,
color:
_goldenColor
,
fontWeight:
FontWeight
.
bold
,
height:
2
),
fontWeight:
FontWeight
.
bold
),
)
],
),
...
...
@@ -269,7 +268,7 @@ class TopCard extends StatelessWidget {
width:
ScreenUtil
().
setWidth
(
140
),
height:
ScreenUtil
().
setHeight
(
55
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
s
paceBetween
,
mainAxisAlignment:
MainAxisAlignment
.
s
tart
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
...
...
@@ -282,16 +281,19 @@ class TopCard extends StatelessWidget {
fontSize:
ScreenUtil
().
setSp
(
11
),
color:
ALColors
.
Color8E8E8E
,
fontWeight:
FontWeight
.
bold
)),
),
SizedBox
(
width:
double
.
maxFinite
,
height:
ScreenUtil
().
setHeight
(
4
),
),
Stack
(
children:
<
Widget
>[
Container
(
width:
double
.
maxFinite
,
height:
ScreenUtil
().
setHeight
(
32
),
height:
ScreenUtil
().
setHeight
(
28
),
),
Positioned
(
right:
ScreenUtil
().
setWidth
(
4
),
bottom:
ScreenUtil
().
setHeight
(
2
),
child:
AnimationNumber
(
targetNmber:
share
.
beat
.
toDouble
(),
delay:
1000
,
...
...
@@ -306,7 +308,7 @@ class TopCard extends StatelessWidget {
width:
ScreenUtil
().
setWidth
(
140
),
height:
ScreenUtil
().
setHeight
(
55
),
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
s
paceBetween
,
mainAxisAlignment:
MainAxisAlignment
.
s
tart
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
Container
(
...
...
@@ -319,15 +321,18 @@ class TopCard extends StatelessWidget {
fontSize:
ScreenUtil
().
setSp
(
11
),
color:
Color
(
0xFF8E8E8E
),
fontWeight:
FontWeight
.
bold
))),
SizedBox
(
width:
double
.
maxFinite
,
height:
ScreenUtil
().
setHeight
(
4
),
),
Stack
(
children:
<
Widget
>[
Container
(
width:
double
.
maxFinite
,
height:
ScreenUtil
().
setHeight
(
32
),
height:
ScreenUtil
().
setHeight
(
28
),
),
Positioned
(
right:
ScreenUtil
().
setWidth
(
6
),
bottom:
ScreenUtil
().
setHeight
(
2
),
child:
AnimationNumber
(
targetNmber:
share
.
rank
.
toDouble
(),
delay:
1000
,
...
...
@@ -355,11 +360,14 @@ class PictorialCard extends StatelessWidget {
Widget
_gridViewItemUI
(
BuildContext
context
,
item
)
{
return
Container
(
margin:
EdgeInsets
.
only
(
bottom:
ScreenUtil
().
setHeight
(
3
)),
width:
ScreenUtil
().
setWidth
(
110
),
height:
ScreenUtil
().
setWidth
(
110
),
child:
CachedNetworkImage
(
imageUrl:
'
${item.image}
'
,
width:
ScreenUtil
().
setWidth
(
110
),
height:
ScreenUtil
().
setHeight
(
110
)));
imageUrl:
'
${item.image}
'
,
width:
ScreenUtil
().
setWidth
(
110
),
fit:
BoxFit
.
cover
,
)
);
}
Widget
_listViewUI
(
BuildContext
context
,
item
)
{
...
...
@@ -368,7 +376,7 @@ class PictorialCard extends StatelessWidget {
list
.
add
(
_gridViewItemUI
(
context
,
item
));
});
return
Container
(
margin:
EdgeInsets
.
only
(
top:
ScreenUtil
().
setHeight
(
32
)
),
margin:
EdgeInsets
.
only
(
top:
32
),
child:
GestureDetector
(
onTap:
()
{
jumpToPictorial
(
'
${item.protocol}
&survey_record_id=
$id
'
);
...
...
@@ -378,14 +386,14 @@ class PictorialCard extends StatelessWidget {
children:
<
Widget
>[
Container
(
width:
ScreenUtil
().
setWidth
(
343
),
padding:
EdgeInsets
.
only
(
bottom:
ScreenUtil
().
setHeight
(
11.0
)),
margin:
EdgeInsets
.
only
(
bottom:
ScreenUtil
().
setHeight
(
14
)),
child:
Wrap
(
spacing:
6
,
children:
list
),
),
Container
(
width:
ScreenUtil
().
setWidth
(
343
)
,
height:
ScreenUtil
().
setHeight
(
53
)
,
width:
double
.
maxFinite
,
height:
53
,
color:
Colors
.
white
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
...
...
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