How can I run a Flutter Linux desktop application in full screen?

Viewed 1091

I need to run a Flutter Linux application in full screen, how can this be achieved? I've looked at the WindowUtils plugin but it only supports desktop embedding.

1 Answers

On Linux, Flutter runs above GTK, so you may edit the file linux/my_application.cc and replace the following line:

gtk_window_set_default_size(window, 1280, 720);

with this line:

gtk_window_fullscreen(GTK_WINDOW(window));
Related