File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import 'package:flutter/services.dart';
11
11
import 'package:flutter_localizations/flutter_localizations.dart' ;
12
12
import 'package:flutter_redux/flutter_redux.dart' ;
13
13
import 'package:redux/redux.dart' ;
14
+ import 'package:fullscreen_window/fullscreen_window.dart' ;
14
15
15
16
import '../actions.dart' ;
16
17
import '../flet_app_context.dart' ;
@@ -486,7 +487,11 @@ class _PageControlState extends State<PageControl> with FletStoreMixin {
486
487
487
488
// windowFullScreen
488
489
if (windowFullScreen != null && windowFullScreen != _windowFullScreen) {
489
- await setWindowFullScreen (windowFullScreen);
490
+ if (isDesktop ()) {
491
+ await setWindowFullScreen (windowFullScreen);
492
+ } else {
493
+ FullScreenWindow .setFullScreen (windowFullScreen);
494
+ }
490
495
_windowFullScreen = windowFullScreen;
491
496
}
492
497
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ dependencies:
42
42
path : ^1.8.2
43
43
js : ^0.6.5
44
44
fl_chart : ^0.69.0
45
+ fullscreen_window : ^1.1.0
45
46
46
47
dev_dependencies :
47
48
flutter_test :
You can’t perform that action at this time.
0 commit comments