File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
shell/platform/darwin/ios/framework/Source Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ - (void)sharedSetupWithProject:(nullable FlutterDartProject*)project
195
195
project = [[[FlutterDartProject alloc ] init ] autorelease ];
196
196
}
197
197
FlutterView.forceSoftwareRendering = project.settings .enable_software_rendering ;
198
+ _weakFactory = std::make_unique<fml::WeakPtrFactory<FlutterViewController>>(self);
198
199
auto engine = fml::scoped_nsobject<FlutterEngine>{[[FlutterEngine alloc ]
199
200
initWithName: @" io.flutter"
200
201
project: project
@@ -206,7 +207,6 @@ - (void)sharedSetupWithProject:(nullable FlutterDartProject*)project
206
207
}
207
208
208
209
_viewOpaque = YES ;
209
- _weakFactory = std::make_unique<fml::WeakPtrFactory<FlutterViewController>>(self);
210
210
_engine = std::move (engine);
211
211
_flutterView.reset ([[FlutterView alloc ] initWithDelegate: _engine opaque: self .isViewOpaque]);
212
212
[_engine.get () createShell: nil libraryURI: nil initialRoute: initialRoute];
You can’t perform that action at this time.
0 commit comments