I have a web-based Flutter application and after clicking a button, I want to make the application fullscreen. I use the following code snippet for this
import 'dart:html';
if (document.documentElement == null) {
print("DEBUG document.documentElement == null");
} else {
document.documentElement.requestFullscreen();
}
This code works fine in Chrome on Linux, in Safari on Mac, on Android, but not on iOS (15.1). There I get the following error
NoSuchMethodError: method not found: 'webkitRequestFullscreen' (s.webkitRequestFullscreen is not a function. (In 's.webkitRequestFullscreen()', 's.webkitRequestFullscreen' is undefined))
Any ideas/tips how to get this working on iOS?