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
aaa5519f
Commit
aaa5519f
authored
Jul 12, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
5d95c2ac
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
25 deletions
+30
-25
DiscussLowPricePopView.dart
...lueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
+0
-1
PlanCompareDetailPage.dart
...ueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
+6
-6
ProjectDetailsItemView.dart
...ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
+2
-2
ProjectDetailsPage.dart
lib/ClueModel/page/ProjectDetails/ProjectDetailsPage.dart
+4
-1
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+5
-5
PlanItem.dart
lib/ClueModel/page/plan/PlanItem.dart
+10
-3
PlanModel.dart
lib/ClueModel/page/plan/PlanModel.dart
+0
-1
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+1
-3
baseTabIndicator.dart
lib/commonModel/view/baseTabIndicator.dart
+2
-3
No files found.
lib/ClueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart
View file @
aaa5519f
...
@@ -56,7 +56,6 @@ class _PopView implements ICenterPicker {
...
@@ -56,7 +56,6 @@ class _PopView implements ICenterPicker {
return
Opacity
(
return
Opacity
(
opacity:
alp
/
255.0
,
opacity:
alp
/
255.0
,
child:
Container
(
child:
Container
(
color:
Colors
.
red
,
width:
contentWidth
,
width:
contentWidth
,
height:
_model
.
popViewLive
.
data
.
second
.
title
.
length
>
13
height:
_model
.
popViewLive
.
data
.
second
.
title
.
length
>
13
?
367.5
?
367.5
...
...
lib/ClueModel/page/PlanCompareDetail/PlanCompareDetailPage.dart
View file @
aaa5519f
...
@@ -446,10 +446,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -446,10 +446,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
children:
<
Widget
>[
children:
<
Widget
>[
planItem
(
planItem
(
index
>
plan1
.
attrs
.
length
-
1
index
>
plan1
.
attrs
.
length
-
1
?
"无"
?
"
暂
无"
:
"
${plan1.attrs[index].attrValue}
"
,
:
"
${plan1.attrs[index].attrValue}
"
,
index
>
plan2
.
attrs
.
length
-
1
index
>
plan2
.
attrs
.
length
-
1
?
"无"
?
"
暂
无"
:
"
${plan2.attrs[index].attrValue}
"
,
:
"
${plan2.attrs[index].attrValue}
"
,
false
),
false
),
Container
(
Container
(
...
@@ -457,10 +457,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -457,10 +457,10 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
),
),
planItem
(
planItem
(
index
>
plan1
.
attrs
.
length
-
1
index
>
plan1
.
attrs
.
length
-
1
?
"无"
?
"
暂
无"
:
"
${plan1.attrs[index].attrName}
"
,
:
"
${plan1.attrs[index].attrName}
"
,
index
>
plan2
.
attrs
.
length
-
1
index
>
plan2
.
attrs
.
length
-
1
?
"无"
?
"
暂
无"
:
"
${plan2.attrs[index].attrName}
"
,
:
"
${plan2.attrs[index].attrName}
"
,
true
),
true
),
Container
(
Container
(
...
@@ -475,7 +475,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -475,7 +475,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
return
Row
(
children:
<
Widget
>[
return
Row
(
children:
<
Widget
>[
Expanded
(
Expanded
(
flex:
1
,
flex:
1
,
child:
baseText
(
left
.
empty
()
?
"无"
:
left
,
14
,
child:
baseText
(
left
.
empty
()
?
"
暂
无"
:
left
,
14
,
isName
?
Color
(
0xff666666
)
:
Color
(
0xff3FB5AF
),
isName
?
Color
(
0xff666666
)
:
Color
(
0xff3FB5AF
),
bold:
true
,
maxLines:
100
,
isWarp:
true
,
textAlign:
TextAlign
.
end
),
bold:
true
,
maxLines:
100
,
isWarp:
true
,
textAlign:
TextAlign
.
end
),
),
),
...
@@ -484,7 +484,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
...
@@ -484,7 +484,7 @@ class PlanCompareDetailPageState extends BaseState<PlanCompareDetailPage> {
),
),
Expanded
(
Expanded
(
flex:
1
,
flex:
1
,
child:
baseText
(
right
.
empty
()
?
"无"
:
right
,
14
,
child:
baseText
(
right
.
empty
()
?
"
暂
无"
:
right
,
14
,
isName
?
Color
(
0xff666666
)
:
Color
(
0xffF25874
),
isName
?
Color
(
0xff666666
)
:
Color
(
0xffF25874
),
bold:
true
,
bold:
true
,
maxLines:
100
,
maxLines:
100
,
...
...
lib/ClueModel/page/ProjectDetails/ProjectDetailsItemView.dart
View file @
aaa5519f
...
@@ -54,7 +54,7 @@ class ProjectDetailsItemView extends StatelessWidget {
...
@@ -54,7 +54,7 @@ class ProjectDetailsItemView extends StatelessWidget {
Container
(
Container
(
margin:
EdgeInsets
.
only
(
right:
25.0
,
left:
15
,
bottom:
25
),
margin:
EdgeInsets
.
only
(
right:
25.0
,
left:
15
,
bottom:
25
),
width:
78
,
width:
78
,
child:
baseText
(
attrs
.
attrName
.
empty
()
?
"无"
:
attrs
.
attrName
,
13
,
child:
baseText
(
attrs
.
attrName
.
empty
()
?
"
暂
无"
:
attrs
.
attrName
,
13
,
Color
(
0xFF999999
),
Color
(
0xFF999999
),
textAlign:
TextAlign
.
start
,
textAlign:
TextAlign
.
start
,
maxLines:
2
,
maxLines:
2
,
...
@@ -62,7 +62,7 @@ class ProjectDetailsItemView extends StatelessWidget {
...
@@ -62,7 +62,7 @@ class ProjectDetailsItemView extends StatelessWidget {
Expanded
(
Expanded
(
child:
Container
(
child:
Container
(
margin:
EdgeInsets
.
only
(
right:
15
,
bottom:
25
),
margin:
EdgeInsets
.
only
(
right:
15
,
bottom:
25
),
child:
baseText
(
attrs
.
attrValue
.
empty
()
?
"无"
:
attrs
.
attrValue
,
child:
baseText
(
attrs
.
attrValue
.
empty
()
?
"
暂
无"
:
attrs
.
attrValue
,
14
,
Color
(
0xFF282828
),
14
,
Color
(
0xFF282828
),
textAlign:
TextAlign
.
start
,
textAlign:
TextAlign
.
start
,
maxLines:
2
,
maxLines:
2
,
...
...
lib/ClueModel/page/ProjectDetails/ProjectDetailsPage.dart
View file @
aaa5519f
...
@@ -70,7 +70,10 @@ class _ProjectDetailsState extends BaseState<ProjectDetailsPage> {
...
@@ -70,7 +70,10 @@ class _ProjectDetailsState extends BaseState<ProjectDetailsPage> {
return
Container
();
return
Container
();
}
}
ProjectDetailsItem
item
=
data
.
data
;
ProjectDetailsItem
item
=
data
.
data
;
if
(
item
==
null
||
item
.
data
==
null
||
item
.
data
.
groups
==
null
)
{
if
(
item
==
null
||
item
.
data
==
null
||
item
.
data
.
groups
==
null
||
item
.
data
.
groups
.
isEmpty
)
{
return
emptyItem
(
MediaQuery
.
of
(
context
).
size
.
width
,
return
emptyItem
(
MediaQuery
.
of
(
context
).
size
.
width
,
MediaQuery
.
of
(
context
).
size
.
height
);
MediaQuery
.
of
(
context
).
size
.
height
);
}
}
...
...
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
aaa5519f
...
@@ -448,11 +448,9 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -448,11 +448,9 @@ class LevelOneState extends BaseState<LevelOnePage>
child:
Row
(
child:
Row
(
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
width:
52
,
constraints:
BoxConstraints
(
// constraints: BoxConstraints(
maxWidth:
55
,
// maxWidth: 52,
),
// minWidth:
// ),
child:
Text
(
child:
Text
(
element
.
attrName
.
length
==
2
element
.
attrName
.
length
==
2
?
"
${element.attrName.substring(0, 1)}
${element.attrName.substring(1, 2)}
"
?
"
${element.attrName.substring(0, 1)}
${element.attrName.substring(1, 2)}
"
...
@@ -460,9 +458,11 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -460,9 +458,11 @@ class LevelOneState extends BaseState<LevelOnePage>
textScaleFactor:
1.0
,
textScaleFactor:
1.0
,
softWrap:
true
,
softWrap:
true
,
maxLines:
1
,
maxLines:
1
,
overflow:
TextOverflow
.
ellipsis
,
overflow:
TextOverflow
.
ellipsis
,
textAlign:
TextAlign
.
start
,
textAlign:
TextAlign
.
start
,
style:
TextStyle
(
style:
TextStyle
(
decoration:
TextDecoration
.
none
,
decoration:
TextDecoration
.
none
,
fontSize:
13
,
fontSize:
13
,
color:
Color
(
0xff999999
),
color:
Color
(
0xff999999
),
...
...
lib/ClueModel/page/plan/PlanItem.dart
View file @
aaa5519f
...
@@ -48,6 +48,13 @@ class PlanItem extends StatelessWidget {
...
@@ -48,6 +48,13 @@ class PlanItem extends StatelessWidget {
}
}
rate
=
rate
.
replaceAll
(
"%"
,
""
);
rate
=
rate
.
replaceAll
(
"%"
,
""
);
var
price
=
NumPlanUtil
.
getPrice
(
plans
.
minPrice
,
plans
.
maxPrice
);
var
price
=
NumPlanUtil
.
getPrice
(
plans
.
minPrice
,
plans
.
maxPrice
);
String
showOprea
=
""
;
if
(!
plans
.
operation_type
.
empty
())
{
showOprea
=
plans
.
operation_type
.
contains
(
";"
)
?
plans
.
operation_type
.
split
(
";"
)[
0
]
:
plans
.
operation_type
;
showOprea
=
showOprea
.
length
>
4
?
showOprea
.
substring
(
0
,
4
)
:
showOprea
;
}
return
Container
(
return
Container
(
margin:
EdgeInsets
.
only
(
top:
10
,
left:
10
,
right:
10
),
margin:
EdgeInsets
.
only
(
top:
10
,
left:
10
,
right:
10
),
child:
Card
(
child:
Card
(
...
@@ -81,7 +88,7 @@ class PlanItem extends StatelessWidget {
...
@@ -81,7 +88,7 @@ class PlanItem extends StatelessWidget {
mainAxisSize:
MainAxisSize
.
min
,
mainAxisSize:
MainAxisSize
.
min
,
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
constraints:
BoxConstraints
(
maxWidth:
95
),
constraints:
BoxConstraints
(
maxWidth:
126
),
child:
baseText
(
plans
.
name
,
14
,
Color
(
0xff282828
),
child:
baseText
(
plans
.
name
,
14
,
Color
(
0xff282828
),
bold:
true
),
bold:
true
),
),
),
...
@@ -91,7 +98,7 @@ class PlanItem extends StatelessWidget {
...
@@ -91,7 +98,7 @@ class PlanItem extends StatelessWidget {
height:
0
,
height:
0
,
)
)
:
Container
(
:
Container
(
constraints:
BoxConstraints
(
maxWidth:
60
),
//
constraints: BoxConstraints(maxWidth: 60),
margin:
EdgeInsets
.
only
(
left:
4
),
margin:
EdgeInsets
.
only
(
left:
4
),
child:
Container
(
child:
Container
(
padding:
EdgeInsets
.
only
(
padding:
EdgeInsets
.
only
(
...
@@ -100,7 +107,7 @@ class PlanItem extends StatelessWidget {
...
@@ -100,7 +107,7 @@ class PlanItem extends StatelessWidget {
borderRadius:
BorderRadius
.
circular
(
2
),
borderRadius:
BorderRadius
.
circular
(
2
),
color:
Color
(
0xffF0F9F7
)),
color:
Color
(
0xffF0F9F7
)),
alignment:
Alignment
.
center
,
alignment:
Alignment
.
center
,
child:
baseText
(
"
${plans.operation_type}
"
,
11
,
child:
baseText
(
showOprea
,
11
,
Color
(
0xff3FB5AF
),
Color
(
0xff3FB5AF
),
bold:
true
),
bold:
true
),
),
),
...
...
lib/ClueModel/page/plan/PlanModel.dart
View file @
aaa5519f
...
@@ -61,7 +61,6 @@ class PlanModel extends BaseModel {
...
@@ -61,7 +61,6 @@ class PlanModel extends BaseModel {
picLive
.
notifyView
(
planBean
.
data
.
ranks
);
picLive
.
notifyView
(
planBean
.
data
.
ranks
);
low
=
PlanModelInstance
.
getInstance
().
low
;
low
=
PlanModelInstance
.
getInstance
().
low
;
high
=
PlanModelInstance
.
getInstance
().
high
;
high
=
PlanModelInstance
.
getInstance
().
high
;
print
(
"QWEEW
${low}
${high}
"
);
projectSelectIndex
=
PlanModelInstance
.
getInstance
().
projectSelectIndex
;
projectSelectIndex
=
PlanModelInstance
.
getInstance
().
projectSelectIndex
;
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
aaa5519f
...
@@ -92,8 +92,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -92,8 +92,6 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
body:
MediaQuery
.
removePadding
(
body:
MediaQuery
.
removePadding
(
removeTop:
true
,
removeTop:
true
,
context:
context
,
context:
context
,
child:
SafeArea
(
top:
false
,
child:
baseStateView
(
child:
baseStateView
(
MediaQuery
.
of
(
context
).
size
.
width
,
MediaQuery
.
of
(
context
).
size
.
width
,
MediaQuery
.
of
(
context
).
size
.
height
,
MediaQuery
.
of
(
context
).
size
.
height
,
...
@@ -102,7 +100,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -102,7 +100,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
_model
.
stateLive
.
notifyView
(
LOADING
);
_model
.
stateLive
.
notifyView
(
LOADING
);
_model
.
init
();
_model
.
init
();
},
paddingTop:
stateBarHeight
+
kToolbarHeight
)),
},
paddingTop:
stateBarHeight
+
kToolbarHeight
)),
)
)
;
);
}
}
Widget
newHome
()
{
Widget
newHome
()
{
...
...
lib/commonModel/view/baseTabIndicator.dart
View file @
aaa5519f
...
@@ -43,15 +43,14 @@ class _MD2Painter extends BoxPainter {
...
@@ -43,15 +43,14 @@ class _MD2Painter extends BoxPainter {
void
paint
(
Canvas
canvas
,
Offset
offset
,
ImageConfiguration
configuration
)
{
void
paint
(
Canvas
canvas
,
Offset
offset
,
ImageConfiguration
configuration
)
{
assert
(
configuration
!=
null
);
assert
(
configuration
!=
null
);
assert
(
configuration
.
size
!=
null
);
assert
(
configuration
.
size
!=
null
);
double
width
=
(
configuration
.
size
.
width
-
50
)
/
3.0
*
2.0
;
Rect
rect
=
Offset
(
Rect
rect
=
Offset
(
offset
.
dx
+
offset
.
dx
+
configuration
.
size
.
width
/
2
-
configuration
.
size
.
width
/
2
-
w
idth
/
2
,
decoration
.
indicatorW
idth
/
2
,
(
configuration
.
size
.
height
-
(
configuration
.
size
.
height
-
decoration
.
indicatorHeight
-
decoration
.
indicatorHeight
-
decoration
.
indicatorPaddingBottom
))
&
decoration
.
indicatorPaddingBottom
))
&
Size
(
w
idth
,
decoration
.
indicatorHeight
);
Size
(
decoration
.
indicatorW
idth
,
decoration
.
indicatorHeight
);
final
Paint
paint
=
Paint
();
final
Paint
paint
=
Paint
();
paint
.
color
=
decoration
.
indicatorColor
;
paint
.
color
=
decoration
.
indicatorColor
;
...
...
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