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
e4a4ead0
Commit
e4a4ead0
authored
Jul 10, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
c459f15f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
32 deletions
+35
-32
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+17
-13
LevelTwoPage.dart
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
+18
-19
No files found.
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
e4a4ead0
...
...
@@ -12,6 +12,7 @@ import 'package:flutter/cupertino.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
import
'package:flutter_common/commonModel/picker/base/BaseBottomPicker.dart'
;
import
'package:flutter_screenutil/screenutil.dart'
;
import
'package:gm_flutter/ClueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart'
;
import
'package:gm_flutter/ClueModel/page/common/StickyTabBarDelegate.dart'
;
import
'package:gm_flutter/ClueModel/page/levelOne/LevelOneList.dart'
;
...
...
@@ -132,6 +133,11 @@ class LevelOneState extends BaseState<LevelOnePage>
Expanded
(
child:
newHomeWarp
(),
),
Container
(
height:
0.5
,
width:
double
.
maxFinite
,
color:
Color
(
0xffE5E5E5
),
),
bottomWidget
(),
],
))),
()
{
...
...
@@ -245,6 +251,7 @@ class LevelOneState extends BaseState<LevelOnePage>
}
Widget
head
()
{
print
(
"SCRRNWIDTH
${MediaQuery.of(context).size.width}
"
);
return
Container
(
key:
keyTop
,
width:
double
.
maxFinite
,
...
...
@@ -489,14 +496,11 @@ class LevelOneState extends BaseState<LevelOnePage>
}
Widget
bottomWidget
()
{
return
Align
(
alignment:
Alignment
.
bottomCenter
,
child:
Container
(
return
Container
(
width:
double
.
maxFinite
,
height:
55
,
color:
Colors
.
white
,
child:
Row
(
mainAxisSize:
MainAxisSize
.
min
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
GestureDetector
(
...
...
@@ -509,7 +513,7 @@ class LevelOneState extends BaseState<LevelOnePage>
false
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
18
),
margin:
EdgeInsets
.
only
(
left:
21
),
width:
30
,
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
...
...
@@ -527,6 +531,9 @@ class LevelOneState extends BaseState<LevelOnePage>
),
),
),
Expanded
(
child:
Container
(),
),
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
...
...
@@ -545,8 +552,7 @@ class LevelOneState extends BaseState<LevelOnePage>
..
show
(
context
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
),
width:
135
,
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
...
...
@@ -579,8 +585,8 @@ class LevelOneState extends BaseState<LevelOnePage>
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
),
width:
135
,
margin:
EdgeInsets
.
only
(
left:
15
,
right:
15
),
width:
ScreenUtil
().
setWidth
(
137
)
,
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xffF96079
),
...
...
@@ -588,12 +594,10 @@ class LevelOneState extends BaseState<LevelOnePage>
alignment:
Alignment
.
center
,
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
)),
Expanded
(
child:
Container
(),
)
],
),
)
)
;
);
}
// Widget home() {
...
...
lib/ClueModel/page/levelTwo/LevelTwoPage.dart
View file @
e4a4ead0
...
...
@@ -13,6 +13,7 @@ import 'package:flutter/cupertino.dart';
import
'package:flutter/material.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
import
'package:flutter_common/commonModel/picker/base/BaseBottomPicker.dart'
;
import
'package:flutter_screenutil/screenutil.dart'
;
import
'package:gm_flutter/ClueModel/page/DiscussLowPrice/DiscussLowPricePopView.dart'
;
import
'package:gm_flutter/ClueModel/page/common/StickyTabBarDelegate.dart'
;
import
'package:gm_flutter/ClueModel/page/levelOne/LevelOneList.dart'
;
...
...
@@ -126,6 +127,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
Expanded
(
child:
newHomeWarp
(),
),
Container
(
height:
0.5
,
width:
double
.
maxFinite
,
color:
Color
(
0xffE5E5E5
),
),
bottomWidget
(),
],
)),
...
...
@@ -457,14 +463,11 @@ class LevelTwoState extends BaseState<LevelTwoPage>
// 底部按钮
Widget
bottomWidget
()
{
return
Align
(
alignment:
Alignment
.
bottomCenter
,
child:
Container
(
return
Container
(
width:
double
.
maxFinite
,
height:
55
,
color:
Colors
.
white
,
child:
Row
(
mainAxisSize:
MainAxisSize
.
min
,
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
<
Widget
>[
GestureDetector
(
...
...
@@ -477,7 +480,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
false
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
18
),
margin:
EdgeInsets
.
only
(
left:
21
),
width:
30
,
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
...
...
@@ -498,9 +501,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
...
...
@@ -513,8 +514,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
..
show
(
context
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
left:
15
),
width:
135
,
width:
ScreenUtil
().
setWidth
(
137
),
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xff51CDC7
),
...
...
@@ -522,12 +522,13 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment:
Alignment
.
center
,
child:
baseText
(
"咨询"
,
14
,
Colors
.
white
,
bold:
true
),
)),
Expanded
(
child:
Container
(),
),
GestureDetector
(
behavior:
HitTestBehavior
.
opaque
,
onTap:
()
{
if
(
CacheManager
.
getInstance
()
.
get
(
MEMORY_CACHE
)
.
get
(
USER_ID
)
==
if
(
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
get
(
USER_ID
)
==
null
&&
RouterCenterImpl
().
findMainRouter
().
isWithNative
())
{
RouterCenterImpl
()
...
...
@@ -547,8 +548,8 @@ class LevelTwoState extends BaseState<LevelTwoPage>
context
,
widget
.
PAGE_NAME
,
"
${widget.planId}
"
,
""
,
""
);
},
child:
Container
(
margin:
EdgeInsets
.
only
(
lef
t:
15
),
width:
135
,
margin:
EdgeInsets
.
only
(
left:
15
,
righ
t:
15
),
width:
ScreenUtil
().
setWidth
(
137
)
,
height:
40
,
decoration:
BoxDecoration
(
color:
Color
(
0xffF96079
),
...
...
@@ -556,11 +557,9 @@ class LevelTwoState extends BaseState<LevelTwoPage>
alignment:
Alignment
.
center
,
child:
baseText
(
"获取底价"
,
14
,
Colors
.
white
,
bold:
true
),
)),
Expanded
(
child:
Container
(),
)
],
),
)
);
);
}
}
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