alibaba / alibaba/flutter_boost

[Bug]: 页面是FBFlutterViewContainer的子类(A),这时候我present一个FBFlutterViewContainer的子类(B),B的modalPresentationStyle = UIModalPresentationOverCurrentContext。这时候我讲B页面dismiss,但是A页面不能滑动了。

Open
#2,094 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

### 请描述遇到的问题,以及您所期望的正确的结果

页面是FBFlutterViewContainer的子类(A),这时候我present一个FBFlutterViewContainer的子类(B),B的modalPresentationStyle = UIModalPresentationOverCurrentContext。这时候我讲B页面dismiss,但是A页面不能滑动了。

### 请说明如何操作会遇到上述问题

我看见代码里面还是特意标注了这些,是这样设计的吗?就是不支持其他类型的modalPresentationStyle吗?
@implementation FBFlutterViewContainer
- (instancetype)init {
ENGINE.viewController = nil;
if (self = [super initWithEngine:ENGINE
nibName:_flbNibName
bundle:_flbNibBundle]) {
// NOTES:在present页面时,默认是全屏,如此可以触发底层VC的页面事件。否则不会触发而导致异常
self.modalPresentationStyle = UIModalPresentationFullScreen;
[self _setup];
}
return self;
}

### 在下面填入关键复现代码

```
vc.modalPresentationStyle = UIModalPresentationFullScreen;
vc.view.backgroundColor = [UIColor colorWithWhite:0 alpha:0.4];
dispatch_async(dispatch_get_main_queue(), ^(void){
[self presentViewController:vc animated:NO completion:nil];
});
```

### 复现的平台

iOS

### Flutter SDK版本

3.16.9

### FlutterBoost版本

4.5.1、4.5.11、5.0.2

### 是否延迟初始化FlutterBoost

No

### 解决方案

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing FBFlutterViewContainer's Objective-C initializer and its modalPresentationStyle setup, then reproduce the nested A/B presentation and dismissal on iOS with the reported FlutterBoost versions. Check the view-controller state after dismissing B; done means A remains interactive and scrollable, or the supported modal presentation styles are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
flutter, ios, objective-c
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.