File tree Expand file tree Collapse file tree 8 files changed +25
-5
lines changed
android/src/main/java/com/idlefish/flutterboost/containers Expand file tree Collapse file tree 8 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 1+ ## v3.0-preview.7
2+ 1 . [ Android] 解决前一个页面destroy时导致当前页面的PlatformViewsChannel断开的问题 (#1250 )
3+ 2 . Hfix #1229 修复example中从Flutter页面推后台再回前天,栈顶页面是Native的页面的问题
4+ 3 . 修复单引擎多VC下问题:1.updateViewportMetrics在键盘唤起时被多个VC调用 2.Tab初始化场景下导致的Crash
5+ 4 . 修复 FlutterBoostFragment跳转新的FlutterBoostFragment,返回上一个FlutterFragment后不响应点击事件
6+
7+
18## v3.0-preview.6
291.[ iOS] 修复iOS打开Flutter页面再关闭不走dispose逻辑问题
3102.[ Android] 解决setSystemUIOverlayStyle不生效的问题
Original file line number Diff line number Diff line change 66</p >
77
88# Release Note
9- v3.0-preview.5
9+ v3.0-preview.7
1010
1111PS: Before updating the beta version, please read the CHANGELOG to see if there are any BREAKING CHANGE
1212
@@ -37,7 +37,7 @@ Open you pubspec.yaml and add the following line to dependencies:
3737flutter_boost:
3838 git:
3939 url: 'https://github.com/alibaba/flutter_boost.git'
40- ref: 'v3.0-preview.6 '
40+ ref: 'v3.0-preview.7 '
4141```
4242
4343
Original file line number Diff line number Diff line change 55
66# Release Note
77
8- v3.0-preview.5
8+ v3.0-preview.7
99
1010PS:preview版本相比beta版本,有较大的改动,建议仔细阅读新的接入文档与使用文档。
1111
@@ -34,7 +34,7 @@ PS:preview版本相比beta版本,有较大的改动,建议仔细阅读新
3434flutter_boost:
3535 git:
3636 url: 'https://github.com/alibaba/flutter_boost.git'
37- ref: 'v3.0-preview.6 '
37+ ref: 'v3.0-preview.7 '
3838```
3939
4040# 使用文档
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ protected void onPause() {
9494 assert (flutterView != null );
9595 ActivityAndFragmentPatch .onPauseDetachFromFlutterEngine (flutterView , getFlutterEngine ());
9696 getFlutterEngine ().getActivityControlSurface ().detachFromActivity ();
97+ platformPlugin .destroy ();
9798 platformPlugin = null ;
9899 getFlutterEngine ().getLifecycleChannel ().appIsResumed ();
99100 }
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ private void didFragmentShow() {
194194 private void didFragmentHide () {
195195 FlutterBoost .instance ().getPlugin ().onContainerDisappeared (this );
196196 ActivityAndFragmentPatch .onPauseDetachFromFlutterEngine (flutterView , getFlutterEngine ());
197+ platformPlugin .destroy ();
197198 platformPlugin = null ;
198199 }
199200
Original file line number Diff line number Diff line change 1919flutter_boost:
2020 git:
2121 url: 'https://github.com/alibaba/flutter_boost.git'
22- ref: 'v3.0-preview.6 '
22+ ref: 'v3.0-preview.7 '
2323```l
2424之后在flutter工程下运行`flutter pub get`
2525dart端就集成完毕了,然后可以在dart端放上一些代码,以下代码基于example3.0
Original file line number Diff line number Diff line change 3131@property (nonatomic , strong ) NSNumber *disablePopGesture;
3232- (instancetype )init ;
3333- (void )surfaceUpdated : (BOOL )appeared ;
34+ - (void )updateViewportMetrics ;
3435@end
3536
3637
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ - (void)flushOngoingTouches;
4040- (void )bridge_viewDidDisappear : (BOOL )animated ;
4141- (void )bridge_viewWillAppear : (BOOL )animated ;
4242- (void )surfaceUpdated : (BOOL )appeared ;
43+ - (void )updateViewportMetrics ;
4344@end
4445
4546#pragma clang diagnostic push
@@ -184,6 +185,9 @@ - (void)notifyWillDealloc
184185}
185186
186187- (void )viewDidLoad {
188+ // Ensure current view controller attach to Flutter engine
189+ [self attatchFlutterEngine ];
190+
187191 [super viewDidLoad ];
188192 // 只有在不透明情况下,才设置背景颜色,否则不设置颜色(也就是默认透明)
189193 if (self.opaque ){
@@ -224,6 +228,12 @@ - (void)surfaceUpdated:(BOOL)appeared {
224228 }
225229}
226230
231+ - (void )updateViewportMetrics {
232+ if (self.engine && self.engine .viewController == self) {
233+ [super updateViewportMetrics ];
234+ }
235+ }
236+
227237#pragma mark - Life circle methods
228238
229239- (void )viewDidLayoutSubviews
You can’t perform that action at this time.
0 commit comments