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
765e8977
Commit
765e8977
authored
Oct 16, 2019
by
yangwu.jia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Page name modification
parent
608d0df3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
example/android/app/src/main/AndroidManifest.xml
example/android/app/src/main/AndroidManifest.xml
+3
-11
example/android/app/src/main/java/com/taobao/idlefish/flutterboostexample/PageRouter.java
...a/com/taobao/idlefish/flutterboostexample/PageRouter.java
+6
-3
example/lib/simple_page_widgets.dart
example/lib/simple_page_widgets.dart
+5
-5
No files found.
example/android/app/src/main/AndroidManifest.xml
View file @
765e8977
...
@@ -36,22 +36,13 @@
...
@@ -36,22 +36,13 @@
<activity
android:name=
".FlutterPageActivity"
android:theme=
"@style/Theme.AppCompat"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:hardwareAccelerated=
"true"
android:windowSoftInputMode=
"adjustResize"
/>
<activity
<activity
android:name=
"com.idlefish.flutterboost.containers.NewBoostFlutterActivity"
android:name=
"com.idlefish.flutterboost.containers.NewBoostFlutterActivity"
android:theme=
"@style/Theme.AppCompat"
android:theme=
"@style/Theme.AppCompat"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:hardwareAccelerated=
"true"
android:hardwareAccelerated=
"true"
android:windowSoftInputMode=
"adjustResize"
>
android:windowSoftInputMode=
"adjustResize"
>
<!--<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/
avd_hide_password
"/>-->
<!--<meta-data android:name="io.flutter.embedding.android.SplashScreenDrawable" android:resource="@drawable/
page_loading
"/>-->
</activity>
</activity>
<activity
<activity
...
@@ -66,5 +57,6 @@
...
@@ -66,5 +57,6 @@
android:theme=
"@style/Theme.AppCompat"
android:theme=
"@style/Theme.AppCompat"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
android:windowSoftInputMode=
"adjustResize"
/>
android:windowSoftInputMode=
"adjustResize"
/>
</application>
</application>
</manifest>
</manifest>
example/android/app/src/main/java/com/taobao/idlefish/flutterboostexample/PageRouter.java
View file @
765e8977
...
@@ -12,9 +12,12 @@ import java.util.Map;
...
@@ -12,9 +12,12 @@ import java.util.Map;
public
class
PageRouter
{
public
class
PageRouter
{
public
final
static
Map
<
String
,
String
>
pageName
=
new
HashMap
<
String
,
String
>()
{{
public
final
static
Map
<
String
,
String
>
pageName
=
new
HashMap
<
String
,
String
>()
{{
put
(
"sample://first"
,
"first"
);
put
(
"sample://second"
,
"second"
);
put
(
"sample://tab"
,
"tab"
);
put
(
"first"
,
"first"
);
put
(
"second"
,
"second"
);
put
(
"tab"
,
"tab"
);
put
(
"sample://flutterPage"
,
"flutterPage"
);
put
(
"sample://flutterPage"
,
"flutterPage"
);
}};
}};
...
...
example/lib/simple_page_widgets.dart
View file @
765e8977
...
@@ -14,7 +14,7 @@ class FirstRouteWidget extends StatelessWidget {
...
@@ -14,7 +14,7 @@ class FirstRouteWidget extends StatelessWidget {
child:
Text
(
'Open second route'
),
child:
Text
(
'Open second route'
),
onPressed:
()
{
onPressed:
()
{
print
(
"open second page!"
);
print
(
"open second page!"
);
FlutterBoost
.
singleton
.
open
(
"s
ample://s
econd"
).
then
((
Map
value
)
{
FlutterBoost
.
singleton
.
open
(
"second"
).
then
((
Map
value
)
{
print
(
print
(
"call me when page is finished. did recieve second route result
$value
"
);
"call me when page is finished. did recieve second route result
$value
"
);
});
});
...
@@ -59,7 +59,7 @@ class TabRouteWidget extends StatelessWidget {
...
@@ -59,7 +59,7 @@ class TabRouteWidget extends StatelessWidget {
body:
Center
(
body:
Center
(
child:
RaisedButton
(
child:
RaisedButton
(
onPressed:
()
{
onPressed:
()
{
FlutterBoost
.
singleton
.
open
(
"s
ample://s
econd"
);
FlutterBoost
.
singleton
.
open
(
"second"
);
},
},
child:
Text
(
'Open second route'
),
child:
Text
(
'Open second route'
),
),
),
...
@@ -147,7 +147,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
...
@@ -147,7 +147,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///例如:sample://nativePage?aaa=bbb
///例如:sample://nativePage?aaa=bbb
onTap:
()
=>
FlutterBoost
.
singleton
onTap:
()
=>
FlutterBoost
.
singleton
.
open
(
"
sample://
first"
,
urlParams:
{
.
open
(
"first"
,
urlParams:
{
"query"
:
{
"aaa"
:
"bbb"
}
"query"
:
{
"aaa"
:
"bbb"
}
}),
}),
),
),
...
@@ -164,7 +164,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
...
@@ -164,7 +164,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///例如:sample://nativePage?aaa=bbb
///例如:sample://nativePage?aaa=bbb
onTap:
()
=>
FlutterBoost
.
singleton
onTap:
()
=>
FlutterBoost
.
singleton
.
open
(
"s
ample://s
econd"
,
urlParams:
{
.
open
(
"second"
,
urlParams:
{
"query"
:
{
"aaa"
:
"bbb"
}
"query"
:
{
"aaa"
:
"bbb"
}
}),
}),
),
),
...
@@ -181,7 +181,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
...
@@ -181,7 +181,7 @@ class _FlutterRouteWidgetState extends State<FlutterRouteWidget> {
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///后面的参数会在native的IPlatform.startActivity方法回调中拼接到url的query部分。
///例如:sample://nativePage?aaa=bbb
///例如:sample://nativePage?aaa=bbb
onTap:
()
=>
FlutterBoost
.
singleton
onTap:
()
=>
FlutterBoost
.
singleton
.
open
(
"
sample://
tab"
,
urlParams:
{
.
open
(
"tab"
,
urlParams:
{
"query"
:
{
"aaa"
:
"bbb"
}
"query"
:
{
"aaa"
:
"bbb"
}
}),
}),
),
),
...
...
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