10

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.

Dah Person
  • 369
  • 1
  • 13

1 Answers1

14

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));
Kapandaria
  • 533
  • 5
  • 9