Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要全屏运行 Flutter Linux 应用程序,如何实现?我看过 WindowUtils 插件,但它只支持桌面嵌入。
在 Linux 上,Flutter 在 GTK 之上运行,因此您可以编辑文件linux/my_application.cc 并替换以下行:
gtk_window_set_default_size(window, 1280, 720);
用这条线:
gtk_window_fullscreen(GTK_WINDOW(window));