exit fullscreen
This commit is contained in:
parent
c469329d19
commit
63930918f6
@ -28,6 +28,8 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
FFI.connect(widget.id);
|
FFI.connect(widget.id);
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
|
// https://stackoverflow.com/questions/46640116/make-flutter-application-fullscreen
|
||||||
|
SystemChrome.setEnabledSystemUIOverlays([]);
|
||||||
showLoading('Connecting...');
|
showLoading('Connecting...');
|
||||||
_interval =
|
_interval =
|
||||||
Timer.periodic(Duration(milliseconds: 30), (timer) => interval());
|
Timer.periodic(Duration(milliseconds: 30), (timer) => interval());
|
||||||
@ -41,6 +43,7 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
_interval.cancel();
|
_interval.cancel();
|
||||||
dismissLoading();
|
dismissLoading();
|
||||||
_decoding = null;
|
_decoding = null;
|
||||||
|
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
|
||||||
}
|
}
|
||||||
|
|
||||||
void interval() {
|
void interval() {
|
||||||
@ -123,8 +126,6 @@ class _RemotePageState extends State<RemotePage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
// Size size = MediaQueryData.fromWindow(ui.window).size;
|
// Size size = MediaQueryData.fromWindow(ui.window).size;
|
||||||
// MediaQuery.of(context).size.height;
|
// MediaQuery.of(context).size.height;
|
||||||
// https://stackoverflow.com/questions/46640116/make-flutter-application-fullscreen
|
|
||||||
SystemChrome.setEnabledSystemUIOverlays([]);
|
|
||||||
return FlutterEasyLoading(
|
return FlutterEasyLoading(
|
||||||
child: InteractiveViewer(
|
child: InteractiveViewer(
|
||||||
constrained: false,
|
constrained: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user