Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_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
林生雨
gm_flutter
Commits
c3e396ed
Commit
c3e396ed
authored
Jul 11, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zcc/flutter' into 'test'
UI走查 See merge request
!32
parents
ce97a652
15986f8f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
31 deletions
+27
-31
PlansCompareFeedItemView.dart
...Model/page/PlansCompareFeed/PlansCompareFeedItemView.dart
+8
-8
PlansCompareFeedPage.dart
...ClueModel/page/PlansCompareFeed/PlansCompareFeedPage.dart
+1
-1
ProjectDetailsItemView.dart
...ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
+18
-22
No files found.
lib/ClueModel/page/PlansCompareFeed/PlansCompareFeedItemView.dart
View file @
c3e396ed
...
@@ -34,7 +34,7 @@ class _PlansCompareFeedItemViewState
...
@@ -34,7 +34,7 @@ class _PlansCompareFeedItemViewState
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
getItem
(),
getItem
(),
Divider
(
height:
0.5
,
color:
Color
(
0x
99979797
))
Divider
(
height:
0.5
,
color:
Color
(
0x
FFE5E5E5
))
],
],
));
));
}
}
...
@@ -50,7 +50,7 @@ class _PlansCompareFeedItemViewState
...
@@ -50,7 +50,7 @@ class _PlansCompareFeedItemViewState
getFirstLevelItem
()
{
getFirstLevelItem
()
{
return
Container
(
return
Container
(
width:
double
.
maxFinite
,
width:
double
.
maxFinite
,
height:
9
0
,
height:
8
0
,
alignment:
Alignment
.
centerLeft
,
alignment:
Alignment
.
centerLeft
,
padding:
EdgeInsets
.
only
(
top:
15
,
bottom:
15
),
padding:
EdgeInsets
.
only
(
top:
15
,
bottom:
15
),
child:
Row
(
child:
Row
(
...
@@ -64,7 +64,7 @@ class _PlansCompareFeedItemViewState
...
@@ -64,7 +64,7 @@ class _PlansCompareFeedItemViewState
),
),
),
),
Container
(
Container
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
1
5
),
margin:
EdgeInsets
.
only
(
left:
15
,
right:
1
2
),
child:
ClipRRect
(
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
4.0
),
borderRadius:
BorderRadius
.
circular
(
4.0
),
child:
CachedNetworkImage
(
child:
CachedNetworkImage
(
...
@@ -101,7 +101,7 @@ class _PlansCompareFeedItemViewState
...
@@ -101,7 +101,7 @@ class _PlansCompareFeedItemViewState
TextSpan
(
TextSpan
(
text:
"%"
,
text:
"%"
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
1
1
,
fontSize:
1
0
,
color:
Color
(
0xFFFF5963
),
color:
Color
(
0xFFFF5963
),
fontWeight:
FontWeight
.
w500
))
fontWeight:
FontWeight
.
w500
))
])),
])),
...
@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState
...
@@ -113,8 +113,8 @@ class _PlansCompareFeedItemViewState
children:
<
Widget
>[
children:
<
Widget
>[
baseText
(
'¥
${widget.plan.minPrice}
-
${widget.plan.maxPrice}
'
,
baseText
(
'¥
${widget.plan.minPrice}
-
${widget.plan.maxPrice}
'
,
13
,
Color
(
0xFFFF5963
)),
13
,
Color
(
0xFFFF5963
)),
baseText
(
baseText
(
"销量
${NumPlanUtil.getSale(widget.plan.salesCount)}
"
,
"销量
${NumPlanUtil.getSale(widget.plan.salesCount)}
"
,
11
,
Color
(
0xFF282828
))
11
,
Color
(
0xFF666666
))
],
],
)
)
],
],
...
@@ -162,7 +162,7 @@ class _PlansCompareFeedItemViewState
...
@@ -162,7 +162,7 @@ class _PlansCompareFeedItemViewState
baseText
(
'¥
${widget.plan.minPrice}
-
${widget.plan.maxPrice}
'
,
baseText
(
'¥
${widget.plan.minPrice}
-
${widget.plan.maxPrice}
'
,
13
,
Color
(
0xFFFF5963
)),
13
,
Color
(
0xFFFF5963
)),
baseText
(
"指导价:¥
${widget.plan.guidePrice}
"
,
11
,
baseText
(
"指导价:¥
${widget.plan.guidePrice}
"
,
11
,
Color
(
0xFF
282828
)),
Color
(
0xFF
666666
)),
],
],
),
),
],
],
...
@@ -178,7 +178,7 @@ class _PlansCompareFeedItemViewState
...
@@ -178,7 +178,7 @@ class _PlansCompareFeedItemViewState
_icon
=
_unchecked
;
_icon
=
_unchecked
;
}
else
{
}
else
{
if
(
widget
.
_setCompare
.
length
==
2
)
{
if
(
widget
.
_setCompare
.
length
==
2
)
{
NativeToast
.
showNativeToast
(
"
不许再选了两个够了!
"
);
NativeToast
.
showNativeToast
(
"
请选择最多2个项目进行对比
"
);
return
;
return
;
}
}
_icon
=
_checked
;
_icon
=
_checked
;
...
...
lib/ClueModel/page/PlansCompareFeed/PlansCompareFeedPage.dart
View file @
c3e396ed
...
@@ -107,7 +107,7 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
...
@@ -107,7 +107,7 @@ class _PlansCompareFeedState extends BaseState<PlansCompareFeedPage>
child:
Column
(
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
children:
<
Widget
>[
Divider
(
height:
0.5
,
color:
Color
(
0x
99979797
)),
Divider
(
height:
0.5
,
color:
Color
(
0x
FFE5E5E5
)),
Container
(
Container
(
margin:
EdgeInsets
.
only
(
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
,
top:
7.5
,
bottom:
7.5
),
left:
15
,
right:
15
,
top:
7.5
,
bottom:
7.5
),
...
...
lib/ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
View file @
c3e396ed
...
@@ -30,7 +30,7 @@ class ProjectDetailsItemView extends StatelessWidget {
...
@@ -30,7 +30,7 @@ class ProjectDetailsItemView extends StatelessWidget {
padding:
EdgeInsets
.
only
(
left:
15.0
),
padding:
EdgeInsets
.
only
(
left:
15.0
),
margin:
EdgeInsets
.
only
(
bottom:
16.0
),
margin:
EdgeInsets
.
only
(
bottom:
16.0
),
alignment:
Alignment
.
centerLeft
,
alignment:
Alignment
.
centerLeft
,
height:
55
,
height:
40
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
DecorationImage
(
image:
AssetImage
(
"assets/bg_project_detail_item.png"
),
image:
AssetImage
(
"assets/bg_project_detail_item.png"
),
...
@@ -47,29 +47,25 @@ class ProjectDetailsItemView extends StatelessWidget {
...
@@ -47,29 +47,25 @@ class ProjectDetailsItemView extends StatelessWidget {
}
}
getAttrItem
(
Attrs
attrs
)
{
getAttrItem
(
Attrs
attrs
)
{
return
Container
(
return
Row
(
width:
double
.
maxFinite
,
crossAxisAlignment:
CrossAxisAlignment
.
start
,
margin:
EdgeInsets
.
only
(
bottom:
25
,
left:
15
,
right:
15
),
children:
<
Widget
>[
child:
Row
(
Container
(
children:
<
Widget
>[
margin:
EdgeInsets
.
only
(
right:
25.0
,
left:
15
,
bottom:
25
),
Container
(
width:
78
,
margin:
EdgeInsets
.
only
(
right:
25.0
),
child:
baseText
(
attrs
.
attrName
,
13
,
Color
(
0xFF999999
),
alignment:
Alignment
.
centerLeft
,
textAlign:
TextAlign
.
start
,
width:
78
,
maxLines:
2
,
child:
baseText
(
attrs
.
attrName
,
13
,
Color
(
0xFF999999
),
overflow:
TextOverflow
.
ellipsis
)),
textAlign:
TextAlign
.
left
,
Expanded
(
child:
Container
(
margin:
EdgeInsets
.
only
(
right:
15
,
bottom:
25
),
child:
baseText
(
attrs
.
attrValue
,
14
,
Color
(
0xFF282828
),
textAlign:
TextAlign
.
start
,
maxLines:
2
,
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
)),
overflow:
TextOverflow
.
ellipsis
)),
Expanded
(
),
child:
Container
(
],
alignment:
Alignment
.
centerLeft
,
child:
baseText
(
attrs
.
attrValue
,
14
,
Color
(
0xFF282828
),
textAlign:
TextAlign
.
left
,
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
)),
),
],
),
);
);
}
}
}
}
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