Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result

- (UIImage *)capturePngScreenshot {
// Get all windows in the app
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
// TODO(jmagman) Use scenes instead of deprecated windows. See
// https://github.com/flutter/flutter/issues/154365
NSArray<UIWindow *> *windows = [UIApplication sharedApplication].windows;
#pragma clang diagnostic pop

// Find the overall bounding rect for all windows
CGRect screenBounds = [UIScreen mainScreen].bounds;
Expand Down