From 4e717740a34c05fe043373a1eb60d86abd23161c Mon Sep 17 00:00:00 2001 From: ak-cipher Date: Sat, 31 Oct 2026 01:13:15 +0530 Subject: [PATCH] fix: unload the web splash image when Flutter draws the first frame Fixes #815 --- lib/templates.dart | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/lib/templates.dart b/lib/templates.dart index 010baed..4a16724 100644 --- a/lib/templates.dart +++ b/lib/templates.dart @@ -464,6 +464,17 @@ const String _webCss = ''' bottom: 0; right: 0; } + + #splash, + #splash img, + #splash-branding, + #splash-branding img { + pointer-events: none; + -webkit-user-select: none; + user-select: none; + -webkit-touch-callout: none; + -webkit-user-drag: none; + } '''; const String _webCssDark = ''' @@ -481,7 +492,7 @@ const String _indexHtmlPicture = ''' - + '''; // XML's insertBefore can't have a newline at the end: @@ -489,15 +500,34 @@ const String _indexHtmlBrandingPicture = ''' - + '''; const String _webJS = ''' ''';