Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
2b7a8f14
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2b7a8f14
编写于
8月 09, 2017
作者:
S
Sarah Zakarias
提交者:
GitHub
8月 09, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add flutter-driven navigation on iOS (#3865)
上级
27dfd06f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
36 addition
and
1 deletion
+36
-1
shell/platform/darwin/ios/BUILD.gn
shell/platform/darwin/ios/BUILD.gn
+3
-0
shell/platform/darwin/ios/framework/Headers/Flutter.h
shell/platform/darwin/ios/framework/Headers/Flutter.h
+1
-0
shell/platform/darwin/ios/framework/Headers/FlutterNavigationController.h
...arwin/ios/framework/Headers/FlutterNavigationController.h
+9
-0
shell/platform/darwin/ios/framework/Source/FlutterNavigationController.mm
...arwin/ios/framework/Source/FlutterNavigationController.mm
+14
-0
shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm
...form/darwin/ios/framework/Source/FlutterPlatformPlugin.mm
+7
-1
travis/licenses_golden/licenses_flutter
travis/licenses_golden/licenses_flutter
+2
-0
未找到文件。
shell/platform/darwin/ios/BUILD.gn
浏览文件 @
2b7a8f14
...
...
@@ -24,6 +24,7 @@ shared_library("flutter_framework_dylib") {
"framework/Headers/FlutterMacros.h",
"framework/Headers/FlutterPlugin.h",
"framework/Headers/FlutterViewController.h",
"framework/Headers/FlutterNavigationController.h",
"framework/Source/FlutterAppDelegate.mm",
"framework/Source/FlutterChannels.mm",
"framework/Source/FlutterCodecs.mm",
...
...
@@ -41,6 +42,7 @@ shared_library("flutter_framework_dylib") {
"framework/Source/FlutterView.h",
"framework/Source/FlutterView.mm",
"framework/Source/FlutterViewController.mm",
"framework/Source/FlutterNavigationController.mm",
"framework/Source/accessibility_bridge.h",
"framework/Source/accessibility_bridge.mm",
"framework/Source/flutter_main_ios.h",
...
...
@@ -165,6 +167,7 @@ copy("framework_headers") {
"framework/Headers/FlutterMacros.h",
"framework/Headers/FlutterPlugin.h",
"framework/Headers/FlutterViewController.h",
"framework/Headers/FlutterNavigationController.h",
]
outputs = [
"$_flutter_framework_dir/Headers/{{source_file_part}}",
...
...
shell/platform/darwin/ios/framework/Headers/Flutter.h
浏览文件 @
2b7a8f14
...
...
@@ -13,5 +13,6 @@
#include "FlutterMacros.h"
#include "FlutterPlugin.h"
#include "FlutterViewController.h"
#include "FlutterNavigationController.h"
#endif // FLUTTER_FLUTTER_H_
shell/platform/darwin/ios/framework/Headers/FlutterNavigationController.h
0 → 100644
浏览文件 @
2b7a8f14
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <UIKit/UIKit.h>
@interface
FlutterNavigationController
:
UINavigationController
@end
shell/platform/darwin/ios/framework/Source/FlutterNavigationController.mm
0 → 100644
浏览文件 @
2b7a8f14
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterNavigationController.h"
@implementation
FlutterNavigationController
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
{
[
self
setNavigationBarHidden
:
YES
];
[
super
viewWillAppear
:
animated
];
}
@end
shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.mm
浏览文件 @
2b7a8f14
...
...
@@ -151,7 +151,13 @@ using namespace shell;
}
-
(
void
)
popSystemNavigator
{
// Apple's human user guidelines say not to terminate iOS applications.
// Apple's human user guidelines say not to terminate iOS applications. However, if the
// root view of the app is a navigation controller, it is instructed to back up a level
// in the navigation hierarchy.
UIViewController
*
viewController
=
[
UIApplication
sharedApplication
].
keyWindow
.
rootViewController
;
if
([
viewController
isKindOfClass
:[
UINavigationController
class
]])
{
[((
UINavigationController
*
)
viewController
)
popViewControllerAnimated
:
NO
];
}
}
-
(
NSDictionary
*
)
getClipboardData
:(
NSString
*
)
format
{
...
...
travis/licenses_golden/licenses_flutter
浏览文件 @
2b7a8f14
...
...
@@ -1458,9 +1458,11 @@ FILE: ../../../flutter/shell/platform/android/platform_view_android_jni.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Headers/FlutterBinaryMessenger.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Headers/FlutterChannels.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Headers/FlutterCodecs.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Headers/FlutterNavigationController.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterChannels.mm
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterCodecs.mm
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterNavigationController.mm
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec.mm
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/FlutterStandardCodec_Internal.h
FILE: ../../../flutter/shell/platform/darwin/ios/framework/Source/flutter_codecs_unittest.mm
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录