Repository navigation
[Desktop] - Splash screen or background color customization #41980
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: googleVarious Google teamsVarious Google teamsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform teamTriaged by the macOS platform team
Description
Internal: b/233627067
Use case
For desktop support, it would be nice to have an easy way to configure a splash screen or a window background color (visible before Flutter first frame is rendered).
Proposal
Add properties in c++ code (win32_flutter_window.cc, flutter_glfw.cc, etc) or in a configuration file to make this customizable on desktop launchers.
Launching Flutter on desktop is in early stage and is moving fast so feel free to close this feature request if it is too soon to ask for this.
Edit by cbracken (2022-04-25): deduped against #82538. Add 78 thumbs-ups (and 23 hearts) to the total on this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: desktopRunning on desktopRunning on desktopc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.customer: googleVarious Google teamsVarious Google teamsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyBuilding on or for Linux specificallyplatform-macosBuilding on or for macOS specificallyBuilding on or for macOS specificallyplatform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specificallyteam-macosOwned by the macOS platform teamOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform teamTriaged by the macOS platform team
Activity
cbracken commentedon Apr 25, 2022
Deduped with #82538 filed by @jonbhanson.
Documentation will need to be added once we've decided on the approach to take with this:
Page URL: https://flutter.dev/docs/development/ui/advanced/splash-screen.html
Page source: https://github.com/flutter/website/tree/master/src/docs/development/ui/advanced/splash-screen.md
He's also filed How to add splash screen in Flutter Desktop on StackOverflow, which should be provided with an answer and also links back to the above docs once they're updated.
cbracken commentedon Apr 26, 2022
From an internal discussion:
For macOS you can try setting popover.contentViewController to some image before constructing FlutterViewController, then setting contentViewController back once Flutter is ready: https://developer.apple.com/documentation/appkit/nspopover/1526794-contentviewcontroller
It's not 100% clear to me what the best way for us to determine "when flutter is ready" but we do have the root-isolate create callback that I'd added years ago as a sneaky way of performing native function registration for unit tests before we had dart:ffi, and which could easily serve that purpose.
21 remaining items
flutter-triage-bot commentedon Jun 7, 2024
The
triaged-desktoplabel is irrelevant if there is noteam-desktoplabel orfyi-desktoplabel.