Commit ba91c1c6 authored by justin's avatar justin Committed by Luke

修改demo

parent 45d679fa
...@@ -20,7 +20,7 @@ class FirstRouteWidget extends StatelessWidget { ...@@ -20,7 +20,7 @@ class FirstRouteWidget extends StatelessWidget {
child: Text('Open native page'), child: Text('Open native page'),
onPressed: () { onPressed: () {
print("open natve page!"); print("open natve page!");
FlutterBoost.singleton.open("native").then((Map<String,dynamic> value) { FlutterBoost.singleton.open("native").then((Map<dynamic,dynamic> 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");
}); });
...@@ -31,7 +31,7 @@ class FirstRouteWidget extends StatelessWidget { ...@@ -31,7 +31,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("second").then((Map<String,dynamic> value) { FlutterBoost.singleton.open("second").then((Map<dynamic,dynamic> 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");
}); });
...@@ -42,7 +42,7 @@ class FirstRouteWidget extends StatelessWidget { ...@@ -42,7 +42,7 @@ class FirstRouteWidget extends StatelessWidget {
child: Text('Present second route'), child: Text('Present second route'),
onPressed: () { onPressed: () {
print("Present second page!"); print("Present second page!");
FlutterBoost.singleton.open("second",urlParams:<String,dynamic>{"present":true}).then((Map<String,dynamic> value) { FlutterBoost.singleton.open("second",urlParams:<String,dynamic>{"present":true}).then((Map<dynamic,dynamic> 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");
}); });
...@@ -64,7 +64,7 @@ class EmbededFirstRouteWidget extends StatelessWidget { ...@@ -64,7 +64,7 @@ class EmbededFirstRouteWidget 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("second").then((Map<String,dynamic> value) { FlutterBoost.singleton.open("second").then((Map<dynamic,dynamic> 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");
}); });
...@@ -130,7 +130,7 @@ class PlatformRouteWidget extends StatelessWidget { ...@@ -130,7 +130,7 @@ class PlatformRouteWidget extends StatelessWidget {
child: TextView(), child: TextView(),
onPressed: () { onPressed: () {
print("open second page!"); print("open second page!");
FlutterBoost.singleton.open("second").then((Map<String,dynamic> value) { FlutterBoost.singleton.open("second").then((Map<dynamic,dynamic> 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");
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment