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
01e72797
Commit
01e72797
authored
Jun 14, 2019
by
Jidong Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
aa1f6e09
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
14 deletions
+16
-14
android/src/main/java/com/taobao/idlefish/flutterboost/ContainerRecord.java
...ava/com/taobao/idlefish/flutterboost/ContainerRecord.java
+1
-1
android/src/main/java/com/taobao/idlefish/flutterboost/messageing/NavigationService.java
...o/idlefish/flutterboost/messageing/NavigationService.java
+0
-1
lib/container/container_coordinator.dart
lib/container/container_coordinator.dart
+3
-2
lib/flutter_boost.dart
lib/flutter_boost.dart
+11
-0
lib/messaging/service/navigation_service.dart
lib/messaging/service/navigation_service.dart
+1
-10
No files found.
android/src/main/java/com/taobao/idlefish/flutterboost/ContainerRecord.java
View file @
01e72797
...
...
@@ -142,7 +142,7 @@ public class ContainerRecord implements IContainerRecord {
map
.
put
(
"name"
,
mContainer
.
getContainerName
());
map
.
put
(
"uniqueId"
,
mUniqueId
);
FlutterBoostPlugin
.
getInstance
().
sendEvent
(
"
backPressedCallback
"
,
map
);
FlutterBoostPlugin
.
getInstance
().
sendEvent
(
"
lifecycle
"
,
map
);
mContainer
.
getBoostFlutterView
().
onBackPressed
();
}
...
...
android/src/main/java/com/taobao/idlefish/flutterboost/messageing/NavigationService.java
View file @
01e72797
...
...
@@ -35,7 +35,6 @@ public class NavigationService {
public
static
MethodChannel
methodChannel
=
null
;
public
static
void
onNativePageResult
(
final
MessageResult
<
Boolean
>
result
,
String
uniqueId
,
String
key
,
Map
resultData
,
Map
params
)
{
Map
<
String
,
Object
>
args
=
new
HashMap
<>();
args
.
put
(
"uniqueId"
,
uniqueId
);
...
...
lib/container/container_coordinator.dart
View file @
01e72797
...
...
@@ -24,7 +24,6 @@
import
'dart:async'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_boost/messaging/service/navigation_service.dart'
;
import
'package:flutter_boost/container/boost_container.dart'
;
import
'package:flutter_boost/flutter_boost.dart'
;
import
'package:flutter_boost/messaging/native_page_container_event_handler.dart'
;
...
...
@@ -37,7 +36,9 @@ class ContainerCoordinator implements NativePageContainerEventHandler {
PageBuilder
_defaultPageBuilder
;
ContainerCoordinator
()
{
NavigationService
.
listenEvent
(
onChannelEvent
);
FlutterBoost
.
singleton
.
addEventListener
(
"lifecycle"
,
(
String
name
,
Map
arguments
){
onChannelEvent
(
arguments
);
});
}
BoostContainerSettings
_createContainerSettings
(
...
...
lib/flutter_boost.dart
View file @
01e72797
...
...
@@ -202,4 +202,15 @@ class FlutterBoost {
///register callbacks for Navigators push & pop
VoidCallback
addBoostNavigatorObserver
(
BoostNavigatorObserver
observer
)
=>
_observersHolder
.
addObserver
<
BoostNavigatorObserver
>(
observer
);
//Listen broadcast event from native.
Function
addEventListener
(
String
name
,
EventListener
listener
){
return
_broadcastor
.
addEventListener
(
name
,
listener
);
}
//Send broadcast event to native.
void
sendEvent
(
String
name
,
Map
arguments
){
_broadcastor
.
sendEvent
(
name
,
arguments
);
}
}
lib/messaging/service/navigation_service.dart
View file @
01e72797
...
...
@@ -30,15 +30,6 @@ class NavigationService {
static
MethodChannel
methodChannel
;
//List event from event channel.
static
int
listenEvent
(
void
onData
(
dynamic
event
))
{
// return _service.listenEvent(onData);
}
//Cancel event for subscription with ID.
static
void
cancelEventForSubscription
(
int
subID
)
{
// _service.cancelEventForSubscription(subID);
}
static
Future
<
bool
>
onShownContainerChanged
(
String
newName
,
String
oldName
,
Map
params
)
{
Map
<
String
,
dynamic
>
properties
=
new
Map
<
String
,
dynamic
>();
properties
[
"newName"
]=
newName
;
...
...
@@ -67,7 +58,7 @@ class NavigationService {
});
}
catch
(
e
)
{
print
(
'Page on start exception'
);
return
Future
<
Map
>
.
value
(
{});
return
Future
<
Map
>
(()
{});
}
}
static
Future
<
bool
>
openPage
(
String
pageName
,
Map
params
,
bool
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