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
3620756d
Commit
3620756d
authored
Nov 26, 2020
by
justin
Committed by
GitHub
Nov 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #917 from kimlet/v1.22.4-hotfixes
修改部分单词拼写错误
parents
f0609d64
8b67b0af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
example/ios/Runner/AppDelegate.m
example/ios/Runner/AppDelegate.m
+1
-1
example/ios/Runner/NativeViewController.m
example/ios/Runner/NativeViewController.m
+1
-1
example/lib/main.dart
example/lib/main.dart
+1
-1
example/lib/simple_page_widgets.dart
example/lib/simple_page_widgets.dart
+16
-16
example_swift/lib/simple_page_widgets.dart
example_swift/lib/simple_page_widgets.dart
+1
-1
No files found.
example/ios/Runner/AppDelegate.m
View file @
3620756d
...
@@ -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 embed
d
ed"
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
];
...
...
example/ios/Runner/NativeViewController.m
View file @
3620756d
...
@@ -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
:
@"embed
d
ed"
params
:@{}];
}
}
return
self
;
return
self
;
}
}
...
...
example/lib/main.dart
View file @
3620756d
...
@@ -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
(),
'embed
ed'
:
(
pageName
,
params
,
_
)
=>
Embe
dedFirstRouteWidget
(),
'embed
ded'
:
(
pageName
,
params
,
_
)
=>
Embed
dedFirstRouteWidget
(),
'first'
:
(
pageName
,
params
,
_
)
=>
FirstRouteWidget
(),
'first'
:
(
pageName
,
params
,
_
)
=>
FirstRouteWidget
(),
'firstFirst'
:
(
pageName
,
params
,
_
)
=>
FirstFirstRouteWidget
(),
'firstFirst'
:
(
pageName
,
params
,
_
)
=>
FirstFirstRouteWidget
(),
'second'
:
(
pageName
,
params
,
_
)
=>
SecondRouteWidget
(),
'second'
:
(
pageName
,
params
,
_
)
=>
SecondRouteWidget
(),
...
...
example/lib/simple_page_widgets.dart
View file @
3620756d
...
@@ -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 nat
i
ve 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 rec
ie
ve native route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve FF route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve second route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve second stateful route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve second route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve second route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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 rec
ie
ve first route result"
);
print
(
"did rec
ei
ve first route result"
);
print
(
"did rec
ie
ve first route result
$value
"
);
print
(
"did rec
ei
ve 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
Embed
d
edFirstRouteWidget
extends
StatefulWidget
{
@override
@override
State
<
StatefulWidget
>
createState
()
{
State
<
StatefulWidget
>
createState
()
{
// TODO: implement createState
// TODO: implement createState
return
_EmbededFirstRouteWidgetState
();
return
_Embed
d
edFirstRouteWidgetState
();
}
}
}
}
class
_Embed
edFirstRouteWidgetState
extends
State
<
Embe
dedFirstRouteWidget
>
{
class
_Embed
dedFirstRouteWidgetState
extends
State
<
Embed
dedFirstRouteWidget
>
{
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
print
(
'_EmbededFirstRouteWidgetState build called!'
);
print
(
'_Embed
d
edFirstRouteWidgetState 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 rec
ie
ve second route result
$value
"
);
"call me when page is finished. did rec
ei
ve 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]:_Embed
d
edFirstRouteWidgetState 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 rec
ie
ve second route result
$value
"
);
"call me when page is finished. did rec
ei
ve second route result
$value
"
);
});
});
},
},
),
),
...
...
example_swift/lib/simple_page_widgets.dart
View file @
3620756d
...
@@ -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 rec
ie
ve second route result
$value
"
);
print
(
"call me when page is finished. did rec
ei
ve second route result
$value
"
);
});
});
},
},
),
),
...
...
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