Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 47d1f7d

Browse files
committed
Change FlutterViewController default opaque value to NO
1 parent 54e1f3f commit 47d1f7d

2 files changed

Lines changed: 81 additions & 115 deletions

File tree

shell/platform/darwin/ios/framework/Source/FlutterViewController.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ - (instancetype)initWithEngine:(FlutterEngine*)engine
120120
NSAssert(engine != nil, @"Engine is required");
121121
self = [super initWithNibName:nibName bundle:nibBundle];
122122
if (self) {
123-
_viewOpaque = YES;
123+
_viewOpaque = NO;
124124
if (engine.viewController) {
125125
FML_LOG(ERROR) << "The supplied FlutterEngine " << [[engine description] UTF8String]
126126
<< " is already used with FlutterViewController instance "
@@ -203,7 +203,7 @@ - (void)sharedSetupWithProject:(nullable FlutterDartProject*)project
203203
return;
204204
}
205205

206-
_viewOpaque = YES;
206+
_viewOpaque = NO;
207207
_weakFactory = std::make_unique<fml::WeakPtrFactory<FlutterViewController>>(self);
208208
_engine = std::move(engine);
209209
_flutterView.reset([[FlutterView alloc] initWithDelegate:_engine opaque:self.isViewOpaque]);

0 commit comments

Comments
 (0)