Excuse me, I'm new to Flutter and I'm creating an application that needs to utilize fullscreen mode but also be able to exit it. The only issue with my code is that it forces fullscreen mode at all times, and I would like to give the user the ability to exit fullscreen mode by pressing F11 or ESC. Could you please advise and help?
Runapp
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
windowManager.waitUntilReadyToShow().then((_) async {
await windowManager.setFullScreen(true);
await windowManager.show();
});
}