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
01f225f9
Commit
01f225f9
authored
Jul 15, 2020
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove print
parent
5548c62a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+5
-3
main.dart
lib/main.dart
+0
-2
No files found.
lib/MainRouter/manager/MainManager.dart
View file @
01f225f9
...
@@ -44,7 +44,9 @@ class MainManager {
...
@@ -44,7 +44,9 @@ class MainManager {
flutterEvent
=
EventChannel
(
'gm_method_event'
);
flutterEvent
=
EventChannel
(
'gm_method_event'
);
flutterEvent
.
receiveBroadcastStream
().
listen
((
data
)
{
flutterEvent
.
receiveBroadcastStream
().
listen
((
data
)
{
if
(
data
is
Map
)
{
if
(
data
is
Map
)
{
if
(!
inProduction
){
print
(
"LSY STATEINIT OKKK
${data}
"
);
print
(
"LSY STATEINIT OKKK
${data}
"
);
}
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
initParams
(
map
);
initParams
(
map
);
}
}
...
@@ -95,9 +97,9 @@ class MainManager {
...
@@ -95,9 +97,9 @@ class MainManager {
if
(
map
[
COOKIE
]
==
null
||
"
${map[COOKIE]}
"
.
isEmpty
)
{
if
(
map
[
COOKIE
]
==
null
||
"
${map[COOKIE]}
"
.
isEmpty
)
{
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
null
);
CacheManager
.
getInstance
().
get
(
MEMORY_CACHE
).
save
(
COOKIE
,
null
);
}
}
print
(
//
print(
"LSY QQWWEERRTTYY
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}
"
//
"LSY QQWWEERRTTYY ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE)}"
"
${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}
"
);
//
" ${CacheManager.getInstance().get(MEMORY_CACHE).get(COOKIE) is String}");
// SimpleEventBus.instance().notifyListener("PlanPage!initState", "");
// SimpleEventBus.instance().notifyListener("PlanPage!initState", "");
}
}
...
...
lib/main.dart
View file @
01f225f9
...
@@ -38,7 +38,6 @@ void main() {
...
@@ -38,7 +38,6 @@ void main() {
sharedPreferences
=
value
;
sharedPreferences
=
value
;
});
});
},
(
Object
error
,
StackTrace
stack
)
{
},
(
Object
error
,
StackTrace
stack
)
{
print
(
"lsy EEEEEE
${error.toString()}
${stack.toString()}
"
);
RouterCenterImpl
()
RouterCenterImpl
()
.
findMainRouter
()
.
findMainRouter
()
.
catchErrorToBugly
(
"
${error.toString()}${stack.toString()}
"
);
.
catchErrorToBugly
(
"
${error.toString()}${stack.toString()}
"
);
...
@@ -85,7 +84,6 @@ class MyApp extends State<MyAppWidget> {
...
@@ -85,7 +84,6 @@ class MyApp extends State<MyAppWidget> {
});
});
FlutterBoost
.
singleton
FlutterBoost
.
singleton
.
addBoostContainerLifeCycleObserver
((
state
,
settings
)
{
.
addBoostContainerLifeCycleObserver
((
state
,
settings
)
{
print
(
"LSY
${state}
"
);
if
(
state
==
ContainerLifeCycle
.
Init
)
{
if
(
state
==
ContainerLifeCycle
.
Init
)
{
RouterCenterImpl
().
findMainRouter
().
init
();
RouterCenterImpl
().
findMainRouter
().
init
();
}
}
...
...
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