Commit 3620756d authored by justin's avatar justin Committed by GitHub

Merge pull request #917 from kimlet/v1.22.4-hotfixes

修改部分单词拼写错误
parents f0609d64 8b67b0af
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
UIButton *pushEmbeded = [UIButton buttonWithType:UIButtonTypeCustom]; UIButton *pushEmbeded = [UIButton buttonWithType:UIButtonTypeCustom];
pushEmbeded.frame = CGRectMake(self.window.frame.size.width * 0.5 - 70, 150, 140, 40); pushEmbeded.frame = CGRectMake(self.window.frame.size.width * 0.5 - 70, 150, 140, 40);
pushEmbeded.backgroundColor = [UIColor redColor]; pushEmbeded.backgroundColor = [UIColor redColor];
[pushEmbeded setTitle:@"push embeded" forState:UIControlStateNormal]; [pushEmbeded setTitle:@"push embedded" forState:UIControlStateNormal];
[pushEmbeded addTarget:self action:@selector(pushEmbeded) forControlEvents:UIControlEventTouchUpInside]; [pushEmbeded addTarget:self action:@selector(pushEmbeded) forControlEvents:UIControlEventTouchUpInside];
[self.window addSubview:pushEmbeded]; [self.window addSubview:pushEmbeded];
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
- (instancetype)init{ - (instancetype)init{
if (self = [super init]) { if (self = [super init]) {
_flutterContainer = [[FLBFlutterViewContainer alloc]init]; _flutterContainer = [[FLBFlutterViewContainer alloc]init];
[_flutterContainer setName:@"embeded" params:@{}]; [_flutterContainer setName:@"embedded" params:@{}];
} }
return self; return self;
} }
......
...@@ -19,7 +19,7 @@ class _MyAppState extends State<MyApp> { ...@@ -19,7 +19,7 @@ class _MyAppState extends State<MyApp> {
FlutterBoost.singleton.registerPageBuilders({ FlutterBoost.singleton.registerPageBuilders({
'/': (pageName, params, _) => Container(), '/': (pageName, params, _) => Container(),
'embeded': (pageName, params, _) => EmbededFirstRouteWidget(), 'embedded': (pageName, params, _) => EmbeddedFirstRouteWidget(),
'first': (pageName, params, _) => FirstRouteWidget(), 'first': (pageName, params, _) => FirstRouteWidget(),
'firstFirst': (pageName, params, _) => FirstFirstRouteWidget(), 'firstFirst': (pageName, params, _) => FirstFirstRouteWidget(),
'second': (pageName, params, _) => SecondRouteWidget(), 'second': (pageName, params, _) => SecondRouteWidget(),
......
...@@ -57,10 +57,10 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -57,10 +57,10 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
RaisedButton( RaisedButton(
child: Text('Open native page'), child: Text('Open native page'),
onPressed: () { onPressed: () {
print("open natve page!"); print("open native page!");
FlutterBoost.singleton.open("native").then((Map<dynamic,dynamic> value) { FlutterBoost.singleton.open("native").then((Map<dynamic,dynamic> value) {
print( print(
"call me when page is finished. did recieve native route result $value"); "call me when page is finished. did receive native route result $value");
}); });
}, },
), ),
...@@ -70,7 +70,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -70,7 +70,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
print("open FF page!"); print("open FF page!");
FlutterBoost.singleton.open("firstFirst").then((Map value) { FlutterBoost.singleton.open("firstFirst").then((Map value) {
print( print(
"call me when page is finished. did recieve FF route result $value"); "call me when page is finished. did receive FF route result $value");
}); });
}, },
), ),
...@@ -80,7 +80,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -80,7 +80,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
print("open second page!"); print("open second page!");
FlutterBoost.singleton.open("second").then((Map<dynamic,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 receive second route result $value");
}); });
}, },
), ),
...@@ -91,7 +91,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -91,7 +91,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
print("Present second stateful page!"); print("Present second stateful page!");
FlutterBoost.singleton.open("secondStateful",urlParams:<String,dynamic>{"present":true}).then((Map value) { FlutterBoost.singleton.open("secondStateful",urlParams:<String,dynamic>{"present":true}).then((Map value) {
print( print(
"call me when page is finished. did recieve second stateful route result $value"); "call me when page is finished. did receive second stateful route result $value");
}); });
}, },
), ),
...@@ -101,7 +101,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -101,7 +101,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
print("Present second page!"); print("Present second page!");
FlutterBoost.singleton.open("second",urlParams:<String,dynamic>{"present":true}).then((Map<dynamic,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 receive second route result $value");
}); });
}, },
), ),
...@@ -111,7 +111,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{ ...@@ -111,7 +111,7 @@ class _FirstRouteWidgetState extends State<FirstRouteWidget>{
onPressed: () { onPressed: () {
FlutterBoost.singleton.open("f2f_first").then((Map<dynamic,dynamic> value) { FlutterBoost.singleton.open("f2f_first").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 receive second route result $value");
}); });
} }
) )
...@@ -174,8 +174,8 @@ class _FirstFirstRouteWidgetState extends State<FirstFirstRouteWidget>{ ...@@ -174,8 +174,8 @@ class _FirstFirstRouteWidgetState extends State<FirstFirstRouteWidget>{
print("open first page again!"); print("open first page again!");
FlutterBoost.singleton.open("first").then((Map value){ FlutterBoost.singleton.open("first").then((Map value){
print("did recieve first route result"); print("did receive first route result");
print("did recieve first route result $value"); print("did receive first route result $value");
}); });
}, },
...@@ -185,19 +185,19 @@ class _FirstFirstRouteWidgetState extends State<FirstFirstRouteWidget>{ ...@@ -185,19 +185,19 @@ class _FirstFirstRouteWidgetState extends State<FirstFirstRouteWidget>{
} }
} }
class EmbededFirstRouteWidget extends StatefulWidget { class EmbeddedFirstRouteWidget extends StatefulWidget {
@override @override
State<StatefulWidget> createState() { State<StatefulWidget> createState() {
// TODO: implement createState // TODO: implement createState
return _EmbededFirstRouteWidgetState(); return _EmbeddedFirstRouteWidgetState();
} }
} }
class _EmbededFirstRouteWidgetState extends State<EmbededFirstRouteWidget> { class _EmbeddedFirstRouteWidgetState extends State<EmbeddedFirstRouteWidget> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
print('_EmbededFirstRouteWidgetState build called!'); print('_EmbeddedFirstRouteWidgetState build called!');
return Scaffold( return Scaffold(
body: Center( body: Center(
child: RaisedButton( child: RaisedButton(
...@@ -206,7 +206,7 @@ class _EmbededFirstRouteWidgetState extends State<EmbededFirstRouteWidget> { ...@@ -206,7 +206,7 @@ class _EmbededFirstRouteWidgetState extends State<EmbededFirstRouteWidget> {
print("open second page!"); print("open second page!");
FlutterBoost.singleton.open("second").then((Map<dynamic,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 receive second route result $value");
}); });
}, },
), ),
...@@ -215,7 +215,7 @@ class _EmbededFirstRouteWidgetState extends State<EmbededFirstRouteWidget> { ...@@ -215,7 +215,7 @@ class _EmbededFirstRouteWidgetState extends State<EmbededFirstRouteWidget> {
} }
@override @override
void dispose() { void dispose() {
print('[XDEBUG]:_EmbededFirstRouteWidgetState disposing~'); print('[XDEBUG]:_EmbeddedFirstRouteWidgetState disposing~');
super.dispose(); super.dispose();
} }
} }
...@@ -314,7 +314,7 @@ class PlatformRouteWidget extends StatelessWidget { ...@@ -314,7 +314,7 @@ class PlatformRouteWidget extends StatelessWidget {
print("open second page!"); print("open second page!");
FlutterBoost.singleton.open("second").then((Map<dynamic,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 receive second route result $value");
}); });
}, },
), ),
......
...@@ -14,7 +14,7 @@ class FirstRouteWidget extends StatelessWidget { ...@@ -14,7 +14,7 @@ class FirstRouteWidget extends StatelessWidget {
onPressed: () { onPressed: () {
print("open second page!"); print("open second page!");
FlutterBoost.singleton.open("second").then((Map value) { FlutterBoost.singleton.open("second").then((Map value) {
print("call me when page is finished. did recieve second route result $value"); print("call me when page is finished. did receive 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