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
da098708
Commit
da098708
authored
Jul 08, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
31ed8fca
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
LevelOnePage.dart
lib/ClueModel/page/levelOne/LevelOnePage.dart
+1
-0
PlanPage.dart
lib/ClueModel/page/plan/PlanPage.dart
+7
-5
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+6
-3
No files found.
lib/ClueModel/page/levelOne/LevelOnePage.dart
View file @
da098708
...
@@ -53,6 +53,7 @@ class LevelOneState extends BaseState<LevelOnePage>
...
@@ -53,6 +53,7 @@ class LevelOneState extends BaseState<LevelOnePage>
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.8.245");
super
.
initState
();
super
.
initState
();
_model
.
plan_id
=
widget
.
planId
;
_model
.
plan_id
=
widget
.
planId
;
_model
.
init
(()
{
_model
.
init
(()
{
...
...
lib/ClueModel/page/plan/PlanPage.dart
View file @
da098708
...
@@ -54,9 +54,11 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -54,9 +54,11 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
GlobalKey
globalKey
=
GlobalKey
();
GlobalKey
globalKey
=
GlobalKey
();
PlanBarView
planBarView
;
PlanBarView
planBarView
;
double
stateBarHeight
;
double
stateBarHeight
;
double
topHeight
;
@override
@override
void
initState
()
{
void
initState
()
{
// DioUtil.getInstance().setProxy("172.30.8.245");
super
.
initState
();
super
.
initState
();
_model
.
init
();
_model
.
init
();
planBarView
=
planBarView
=
...
@@ -82,7 +84,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -82,7 +84,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
@override
@override
Widget
buildItem
(
BuildContext
context
)
{
Widget
buildItem
(
BuildContext
context
)
{
stateBarHeight
=
MediaQueryData
.
fromWindow
(
window
).
padding
.
top
;
stateBarHeight
=
MediaQueryData
.
fromWindow
(
window
).
padding
.
top
;
topHeight
=
stateBarHeight
+
kToolbarHeight
;
return
Scaffold
(
return
Scaffold
(
body:
MediaQuery
.
removePadding
(
body:
MediaQuery
.
removePadding
(
removeTop:
true
,
removeTop:
true
,
...
@@ -102,7 +104,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -102,7 +104,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
children:
<
Widget
>[
children:
<
Widget
>[
Container
(
Container
(
width:
MediaQuery
.
of
(
context
).
size
.
width
,
width:
MediaQuery
.
of
(
context
).
size
.
width
,
height:
MediaQuery
.
of
(
context
).
size
.
height
-
stateBar
Height
,
height:
MediaQuery
.
of
(
context
).
size
.
height
-
top
Height
,
child:
child
(),
child:
child
(),
),
),
StreamBuilder
<
List
<
double
>>(
StreamBuilder
<
List
<
double
>>(
...
@@ -285,7 +287,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -285,7 +287,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
Widget
head
()
{
Widget
head
()
{
return
Container
(
return
Container
(
height:
stateBar
Height
,
height:
top
Height
,
// child: Container(
// child: Container(
// margin: EdgeInsets.only(top: 48, left: 15, right: 15),
// margin: EdgeInsets.only(top: 48, left: 15, right: 15),
// width: double.maxFinite,
// width: double.maxFinite,
...
@@ -454,7 +456,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -454,7 +456,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
double
bottom
=
double
bottom
=
// WidgetUtil.buttonLeftMenuPosition(globalKey.currentContext)?.top ??
// WidgetUtil.buttonLeftMenuPosition(globalKey.currentContext)?.top ??
topPos
==
null
?
0.0
:
topPos
.
dy
+
45
-
stateBar
Height
;
topPos
==
null
?
0.0
:
topPos
.
dy
+
45
-
top
Height
;
if
(
bottom
<
45
)
{
if
(
bottom
<
45
)
{
bottom
=
45
;
bottom
=
45
;
}
}
...
@@ -530,7 +532,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
...
@@ -530,7 +532,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
void
_onScroll
(
double
offset
)
{
void
_onScroll
(
double
offset
)
{
var
topPos
=
PosUtil
.
findPos
(
globalKey
);
var
topPos
=
PosUtil
.
findPos
(
globalKey
);
if
(
topPos
!=
null
)
{
if
(
topPos
!=
null
)
{
if
(
topPos
.
dy
>
stateBar
Height
)
{
if
(
topPos
.
dy
>
top
Height
)
{
_model
.
showTab
.
notifyView
(
false
);
_model
.
showTab
.
notifyView
(
false
);
}
else
{
}
else
{
_model
.
showTab
.
notifyView
(
true
);
_model
.
showTab
.
notifyView
(
true
);
...
...
lib/MainRouter/manager/MainManager.dart
View file @
da098708
...
@@ -36,7 +36,8 @@ class MainManager {
...
@@ -36,7 +36,8 @@ class MainManager {
flutterChannel
=
MethodChannel
(
'gm_method_channel'
);
flutterChannel
=
MethodChannel
(
'gm_method_channel'
);
flutterEvent
=
EventChannel
(
'gm_method_event'
);
flutterEvent
=
EventChannel
(
'gm_method_event'
);
flutterEvent
.
receiveBroadcastStream
().
listen
((
data
)
{
flutterEvent
.
receiveBroadcastStream
().
listen
((
data
)
{
if
(
data
is
Map
<
String
,
String
>)
{
if
(
data
is
Map
)
{
print
(
"LSY STATEINIT OKKK
${data}
"
);
var
map
=
Map
<
String
,
String
>.
from
(
data
);
var
map
=
Map
<
String
,
String
>.
from
(
data
);
innerSetData
(
map
,
APP_NAME
);
innerSetData
(
map
,
APP_NAME
);
innerSetData
(
map
,
VERSION
);
innerSetData
(
map
,
VERSION
);
...
@@ -63,13 +64,15 @@ class MainManager {
...
@@ -63,13 +64,15 @@ class MainManager {
innerSetData
(
map
,
BASE_URL
);
innerSetData
(
map
,
BASE_URL
);
DioUtil
.
setDefOptions
(
DioUtil
.
setDefOptions
(
baseUrl:
map
[
BASE_URL
]
+
"
/"
,
baseUrl:
"
${map[BASE_URL]}
/"
,
cookie:
map
[
COOKIE
],
cookie:
map
[
COOKIE
],
agent:
map
[
USER_AGENT
]);
agent:
map
[
USER_AGENT
]);
if
(
map
[
COOKIE
]==
null
)
{
if
(
map
[
COOKIE
]
==
null
)
{
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
"_gm_token=1da6071594101423; csrftoken=rUrkkYYMOVZfIIQnU2IH09QIGmsfe8tE; sessionid=uz7f70uap76r6og48znci5l2hbr9vm5c; _gtid=5af9a5deba8511ea8d4082a085c393c93393"
);
"_gm_token=1da6071594101423; csrftoken=rUrkkYYMOVZfIIQnU2IH09QIGmsfe8tE; sessionid=uz7f70uap76r6og48znci5l2hbr9vm5c; _gtid=5af9a5deba8511ea8d4082a085c393c93393"
);
}
}
print
(
"LSY QQWWEERRTTYY
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
);
DioUtil
.
getInstance
().
changeOpt
();
DioUtil
.
getInstance
().
changeOpt
();
}
}
});
});
...
...
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