Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
3ef2bfe4
Commit
3ef2bfe4
authored
Jul 01, 2019
by
Yacumima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev
parent
ceb75b14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/flutter_boost.dart
lib/flutter_boost.dart
+8
-8
No files found.
lib/flutter_boost.dart
View file @
3ef2bfe4
...
@@ -109,17 +109,17 @@ class FlutterBoost {
...
@@ -109,17 +109,17 @@ class FlutterBoost {
ContainerCoordinator
.
singleton
.
registerPageBuilders
(
builders
);
ContainerCoordinator
.
singleton
.
registerPageBuilders
(
builders
);
}
}
Future
<
Map
<
dynamic
,
dynamic
>>
open
(
String
url
,{
Map
<
dynamic
,
dynamic
>
urlParams
,
Map
<
dynamic
,
dynamic
>
exts
}){
Future
<
Map
<
String
,
dynamic
>>
open
(
String
url
,{
Map
<
String
,
dynamic
>
urlParams
,
Map
<
String
,
dynamic
>
exts
}){
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
properties
[
"url"
]
=
url
;
properties
[
"url"
]
=
url
;
properties
[
"urlParams"
]
=
urlParams
;
properties
[
"urlParams"
]
=
urlParams
;
properties
[
"exts"
]
=
exts
;
properties
[
"exts"
]
=
exts
;
return
channel
.
invokeMethod
<
Map
<
dynamic
,
dynamic
>>(
return
channel
.
invokeMethod
<
Map
<
String
,
dynamic
>>(
'openPage'
,
properties
);
'openPage'
,
properties
);
}
}
Future
<
bool
>
close
(
String
id
,{
Map
<
dynamic
,
dynamic
>
result
,
Map
<
dynamic
,
dynamic
>
exts
}){
Future
<
bool
>
close
(
String
id
,{
Map
<
String
,
dynamic
>
result
,
Map
<
String
,
dynamic
>
exts
}){
assert
(
id
!=
null
);
assert
(
id
!=
null
);
...
@@ -127,7 +127,7 @@ class FlutterBoost {
...
@@ -127,7 +127,7 @@ class FlutterBoost {
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
if
(
exts
==
null
){
if
(
exts
==
null
){
exts
=
Map
<
dynamic
,
dynamic
>();
exts
=
Map
<
String
,
dynamic
>();
}
}
exts
[
"params"
]
=
settings
.
params
;
exts
[
"params"
]
=
settings
.
params
;
...
@@ -148,10 +148,10 @@ class FlutterBoost {
...
@@ -148,10 +148,10 @@ class FlutterBoost {
return
channel
.
invokeMethod
<
bool
>(
'closePage'
,
properties
);
return
channel
.
invokeMethod
<
bool
>(
'closePage'
,
properties
);
}
}
Future
<
bool
>
closeCurrent
({
Map
<
dynamic
,
dynamic
>
result
,
Map
<
dynamic
,
dynamic
>
exts
})
{
Future
<
bool
>
closeCurrent
({
Map
<
String
,
dynamic
>
result
,
Map
<
String
,
dynamic
>
exts
})
{
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
if
(
exts
==
null
){
if
(
exts
==
null
){
exts
=
Map
<
dynamic
,
dynamic
>();
exts
=
Map
<
String
,
dynamic
>();
}
}
exts
[
"params"
]
=
settings
.
params
;
exts
[
"params"
]
=
settings
.
params
;
if
(!
exts
.
containsKey
(
"animated"
)){
if
(!
exts
.
containsKey
(
"animated"
)){
...
@@ -160,10 +160,10 @@ class FlutterBoost {
...
@@ -160,10 +160,10 @@ class FlutterBoost {
return
close
(
settings
.
uniqueId
,
result:
result
,
exts:
exts
);
return
close
(
settings
.
uniqueId
,
result:
result
,
exts:
exts
);
}
}
Future
<
bool
>
closeByContext
(
BuildContext
context
,{
Map
<
dynamic
,
dynamic
>
result
,
Map
<
dynamic
,
dynamic
>
exts
})
{
Future
<
bool
>
closeByContext
(
BuildContext
context
,{
Map
<
String
,
dynamic
>
result
,
Map
<
String
,
dynamic
>
exts
})
{
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
BoostContainerSettings
settings
=
containerManager
?.
onstageSettings
;
if
(
exts
==
null
){
if
(
exts
==
null
){
exts
=
Map
<
dynamic
,
dynamic
>();
exts
=
Map
<
String
,
dynamic
>();
}
}
exts
[
"params"
]
=
settings
.
params
;
exts
[
"params"
]
=
settings
.
params
;
if
(!
exts
.
containsKey
(
"animated"
)){
if
(!
exts
.
containsKey
(
"animated"
)){
...
...
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