mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() This change sets the program name to the application ID, which helps various systems like GTK and desktop environments map this running application to its corresponding .desktop file. This ensures better integration by allowing the application to be recognized beyond its binary name. Notably, this is necessary on Wayland to map the running application window to the desktop file, and therefore apply the correct icon. I've tested that this works in both GNOME & KDE Wayland sessions. Partially addresses https://github.com/flutter/flutter/issues/53229 Resolves https://github.com/flutter/flutter/issues/154521 ## Icon Association ### Task switcher The task switcher shows the application's icon in the bottom-middle. Before it only showed a generic Wayland icon. | Before | After | |-------- |------- | |  | | ### Window Decorations KDE shows the application's icon on the window decorations, at the top-left. Before it only showed a generic Wayland icon. | Before | After | |-------- |------- | |  |  | |
||
---|---|---|
.. | ||
app | ||
app_integration_test/integration_test | ||
app_shared | ||
app_test_widget/test | ||
cocoapods | ||
module | ||
package | ||
package_ffi | ||
plugin | ||
plugin_cocoapods | ||
plugin_ffi | ||
plugin_shared | ||
plugin_swift_package_manager | ||
skeleton | ||
xcode/ios/custom_application_bundle | ||
README.md | ||
template_manifest.json |
This directory contains templates for flutter create
.
The *_shared
subdirectories provide files for multiple templates.
app_shared
forapp
andskeleton
.plugin_shared
for (method channel)plugin
andplugin_ffi
.
For example, there are two app templates: app
(the counter app)
and skeleton
(the more advanced list view/detail view app).
┌────────────┐
│ app_shared │
└──┬──────┬──┘
│ │
│ │
▼ ▼
┌─────┐ ┌──────────┐
│ app │ │ skeleton │
└─────┘ └──────────┘
Thanks to app_shared
, the templates for app
and skeleton
can contain
only the files that are specific to them alone, and the rest is automatically
kept in sync.