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
11d7b18b
Commit
11d7b18b
authored
Sep 18, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug
parent
e0b1bccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
example_swift/ios/Runner/PlatformRouterImp.swift
example_swift/ios/Runner/PlatformRouterImp.swift
+9
-6
No files found.
example_swift/ios/Runner/PlatformRouterImp.swift
View file @
11d7b18b
...
@@ -11,8 +11,9 @@ import Foundation
...
@@ -11,8 +11,9 @@ import Foundation
class
PlatformRouterImp
:
NSObject
,
FLBPlatform
{
class
PlatformRouterImp
:
NSObject
,
FLBPlatform
{
func
open
(
_
url
:
String
,
urlParams
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
func
open
(
_
url
:
String
,
urlParams
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
guard
let
animated
=
exts
[
"animated"
]
as?
Bool
else
{
var
animated
=
false
;
return
;
if
exts
[
"animated"
]
!=
nil
{
animated
=
exts
[
"animated"
]
as!
Bool
;
}
}
let
vc
=
FLBFlutterViewContainer
.
init
();
let
vc
=
FLBFlutterViewContainer
.
init
();
vc
.
setName
(
url
,
params
:
urlParams
);
vc
.
setName
(
url
,
params
:
urlParams
);
...
@@ -21,8 +22,9 @@ class PlatformRouterImp: NSObject, FLBPlatform {
...
@@ -21,8 +22,9 @@ class PlatformRouterImp: NSObject, FLBPlatform {
}
}
func
present
(
_
url
:
String
,
urlParams
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
func
present
(
_
url
:
String
,
urlParams
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
guard
let
animated
=
exts
[
"animated"
]
as?
Bool
else
{
var
animated
=
false
;
return
;
if
exts
[
"animated"
]
!=
nil
{
animated
=
exts
[
"animated"
]
as!
Bool
;
}
}
let
vc
=
FLBFlutterViewContainer
.
init
();
let
vc
=
FLBFlutterViewContainer
.
init
();
vc
.
setName
(
url
,
params
:
urlParams
);
vc
.
setName
(
url
,
params
:
urlParams
);
...
@@ -32,8 +34,9 @@ class PlatformRouterImp: NSObject, FLBPlatform {
...
@@ -32,8 +34,9 @@ class PlatformRouterImp: NSObject, FLBPlatform {
}
}
func
close
(
_
uid
:
String
,
result
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
func
close
(
_
uid
:
String
,
result
:
[
AnyHashable
:
Any
],
exts
:
[
AnyHashable
:
Any
],
completion
:
@escaping
(
Bool
)
->
Void
)
{
guard
let
animated
=
exts
[
"animated"
]
as?
Bool
else
{
var
animated
=
false
;
return
;
if
exts
[
"animated"
]
!=
nil
{
animated
=
exts
[
"animated"
]
as!
Bool
;
}
}
let
presentedVC
=
self
.
navigationController
()
.
presentedViewController
;
let
presentedVC
=
self
.
navigationController
()
.
presentedViewController
;
let
vc
=
presentedVC
as?
FLBFlutterViewContainer
;
let
vc
=
presentedVC
as?
FLBFlutterViewContainer
;
...
...
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