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
2c5e6f88
Commit
2c5e6f88
authored
Jul 10, 2020
by
朱璇
Browse files
Options
Browse Files
Download
Plain Diff
conflict fix
parents
ea219ed5
0162ea00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
MainManager.dart
lib/MainRouter/manager/MainManager.dart
+17
-17
No files found.
lib/MainRouter/manager/MainManager.dart
View file @
2c5e6f88
...
...
@@ -10,7 +10,6 @@ import 'package:flutter_boost/flutter_boost.dart';
import
'package:gm_flutter/commonModel/GMBase.dart'
;
import
'package:gm_flutter/commonModel/base/BaseUtil.dart'
;
import
'package:gm_flutter/commonModel/cache/CacheManager.dart'
;
import
'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'
;
import
'package:gm_flutter/commonModel/util/DartUtil.dart'
;
import
'../../commonModel/App.dart'
;
...
...
@@ -119,20 +118,21 @@ class MainManager {
}
}
// void getInitParams(VoidCallback callback) {
// if (isInit) {
// if (flutterChannel != null) {
// flutterChannel.invokeMethod("get_common_params").then((data) {
// if (data is Map) {
// var map = Map<String, dynamic>.from(data);
// initParams(map, callback: callback);
// }
// }).whenComplete(() {
//// callback();
// });
// return;
// }
// }
// callback();
// }
void
getInitParams
(
VoidCallback
callback
)
{
if
(
isInit
)
{
if
(
flutterChannel
!=
null
)
{
flutterChannel
.
invokeMethod
(
"get_common_params"
).
then
((
data
)
{
if
(
data
is
Map
)
{
var
map
=
Map
<
String
,
dynamic
>.
from
(
data
);
initParams
(
map
,
callback:
callback
);
}
}).
whenComplete
(()
{
// callback();
});
return
;
}
}
callback
();
}
}
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