Commit 6c7e6e50 authored by Luke's avatar Luke

连续push多个flutter页面时白屏问题修复

parent 53766712
...@@ -187,6 +187,8 @@ static NSUInteger kInstanceCounter = 0; ...@@ -187,6 +187,8 @@ static NSUInteger kInstanceCounter = 0;
[super viewWillAppear:animated]; [super viewWillAppear:animated];
[self.view setNeedsLayout]; [self.view setNeedsLayout];
[self surfaceUpdated:YES];
//instead of calling [super viewWillAppear:animated];, call super's super //instead of calling [super viewWillAppear:animated];, call super's super
// struct objc_super target = { // struct objc_super target = {
// .super_class = class_getSuperclass([FlutterViewController class]), // .super_class = class_getSuperclass([FlutterViewController class]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment