Product Name in Desktop Title Bar
Como exibir o nome do produto na barra de título de apps desktop Koder (Linux/macOS/Windows). Define formato canônico, casos de tela, sufixos (Untitled, dirty marker), e proibições.
Spec — Product Name in Desktop Title Bar
Applicability
Any Koder product (koder-*) that ships a desktop GUI — Flutter desktop, GTK, Qt, Electron, etc. Does *ot*apply to mobileonly, webonly, or CLI products.
Required Behavior
The product's name must appear in the window *itle bar*of the main window.
Implementation
- Set the window title via
window_manager(windowManager.setTitle(appName)) or the native framework equivalent. - In Flutter, also set
MaterialApp(title: appName). - Use the constant
appNamedefined inlib/core/constants.dartof the product, e.g.:const String appName = 'Koder Video';
Deterministic Audit Checks
A checker can verify:
lib/core/constants.dart(or equivalent) exports anappNamestring constant.- The main window creation code passes
appNameto the title bar setter. MaterialApp(title: ...)usesappName(Flutter only).