Update mobile details page layout

This commit is contained in:
2024-01-26 13:15:27 +08:00
parent e6363ff4fb
commit 94bcb53603
7 changed files with 63 additions and 19 deletions

View File

@@ -74,7 +74,7 @@ class FilePickerDelegate: NSObject, UIDocumentPickerDelegate {
}
func pickFile() {
guard let viewController = UIApplication.shared.keyWindow?.rootViewController else {
guard let viewController = UIApplication.shared.windows.last(where: { $0.isKeyWindow })?.rootViewController else {
result(FlutterError(code: "fatal",
message: "Getting rootViewController failed",
details: nil))