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
68c175a6
Commit
68c175a6
authored
Sep 04, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme
parent
0b33f1ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
34 deletions
+16
-34
README.md
README.md
+12
-21
README_CN.md
README_CN.md
+4
-13
No files found.
README.md
View file @
68c175a6
...
@@ -163,7 +163,7 @@ public class MyApplication extends FlutterApplication {
...
@@ -163,7 +163,7 @@ public class MyApplication extends FlutterApplication {
@Override
@Override
public
void
openContainer
(
Context
context
,
String
url
,
Map
<
String
,
Object
>
urlParams
,
int
requestCode
,
Map
<
String
,
Object
>
exts
)
{
public
void
openContainer
(
Context
context
,
String
url
,
Map
<
String
,
Object
>
urlParams
,
int
requestCode
,
Map
<
String
,
Object
>
exts
)
{
PageRouter
.
openPageByUrl
(
context
,
url
,
urlParams
,
requestCode
);
//native open url
}
}
@Override
@Override
...
@@ -210,21 +210,16 @@ Android
...
@@ -210,21 +210,16 @@ Android
```
java
```
java
public
class
FlutterPageActivity
extends
BoostFlutterActivity
{
public
class
FlutterPageActivity
extends
BoostFlutterActivity
{
@Override
public
void
onRegisterPlugins
(
PluginRegistry
registry
)
{
//register flutter plugins
GeneratedPluginRegistrant
.
registerWith
(
registry
);
}
@Override
@Override
public
String
getContainer
Name
()
{
public
String
getContainer
Url
()
{
//specify the page name register in FlutterBoost
//specify the page name register in FlutterBoost
return
"sample://firstPage"
;
return
"sample://firstPage"
;
}
}
@Override
@Override
public
Map
getContainerParams
()
{
public
Map
getContainer
Url
Params
()
{
//params of the page
//params of the page
Map
<
String
,
String
>
params
=
new
HashMap
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"key"
,
"value"
);
params
.
put
(
"key"
,
"value"
);
return
params
;
return
params
;
...
@@ -235,21 +230,17 @@ public class FlutterPageActivity extends BoostFlutterActivity {
...
@@ -235,21 +230,17 @@ public class FlutterPageActivity extends BoostFlutterActivity {
or
or
```
java
```
java
public
class
FlutterFragment
extends
BoostFlutterFragment
{
@Override
public
void
onRegisterPlugins
(
PluginRegistry
registry
)
{
GeneratedPluginRegistrant
.
registerWith
(
registry
);
}
@Override
public
class
FlutterFragment
extends
BoostFlutterFragment
{
public
String
getContainerName
()
{
@Override
return
"sample://firstPage"
;
public
String
getContainerUrl
()
{
return
"flutterFragment"
;
}
}
@Override
@Override
public
Map
getContainer
Params
()
{
public
Map
getContainerUrl
Params
()
{
Map
<
String
,
String
>
params
=
new
HashMap
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"
key"
,
"value"
);
params
.
put
(
"
tag"
,
getArguments
().
getString
(
"tag"
)
);
return
params
;
return
params
;
}
}
}
}
...
...
README_CN.md
View file @
68c175a6
...
@@ -200,20 +200,15 @@ Android
...
@@ -200,20 +200,15 @@ Android
```
java
```
java
public
class
FlutterPageActivity
extends
BoostFlutterActivity
{
public
class
FlutterPageActivity
extends
BoostFlutterActivity
{
@Override
public
void
onRegisterPlugins
(
PluginRegistry
registry
)
{
//register flutter plugins
GeneratedPluginRegistrant
.
registerWith
(
registry
);
}
@Override
@Override
public
String
getContainer
Name
()
{
public
String
getContainer
Url
()
{
//specify the page name register in FlutterBoost
//specify the page name register in FlutterBoost
return
"sample://firstPage"
;
return
"sample://firstPage"
;
}
}
@Override
@Override
public
Map
getContainerParams
()
{
public
Map
getContainer
Url
Params
()
{
//params of the page
//params of the page
Map
<
String
,
String
>
params
=
new
HashMap
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"key"
,
"value"
);
params
.
put
(
"key"
,
"value"
);
...
@@ -226,18 +221,14 @@ public class FlutterPageActivity extends BoostFlutterActivity {
...
@@ -226,18 +221,14 @@ public class FlutterPageActivity extends BoostFlutterActivity {
```
java
```
java
public
class
FlutterFragment
extends
BoostFlutterFragment
{
public
class
FlutterFragment
extends
BoostFlutterFragment
{
@Override
public
void
onRegisterPlugins
(
PluginRegistry
registry
)
{
GeneratedPluginRegistrant
.
registerWith
(
registry
);
}
@Override
@Override
public
String
getContainer
Name
()
{
public
String
getContainer
Url
()
{
return
"sample://firstPage"
;
return
"sample://firstPage"
;
}
}
@Override
@Override
public
Map
getContainerParams
()
{
public
Map
getContainer
Url
Params
()
{
Map
<
String
,
String
>
params
=
new
HashMap
<>();
Map
<
String
,
String
>
params
=
new
HashMap
<>();
params
.
put
(
"key"
,
"value"
);
params
.
put
(
"key"
,
"value"
);
return
params
;
return
params
;
...
...
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