Delete splash screen on dynamic web #3643
Unanswered
NSOPORTEDESARROLLO
asked this question in
Q&A
Replies: 1 comment 8 replies
-
You need to provide a custom i <!DOCTYPE html>
<html>
<head>
<base href="$FLUTTER_BASE_HREF">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Flet application.">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Flet">
<link rel="apple-touch-icon" href="icons/apple-touch-icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />
<!-- Flet specific -->
<meta name="flet-route-url-strategy" content="%FLET_ROUTE_URL_STRATEGY%">
<meta name="flet-web-pyodide" content="%FLET_WEB_PYODIDE%">
<meta name="flet-websocket-endpoint-path" content="/ws">
<title>Flet</title>
<link rel="manifest" href="manifest.json">
<script>
var webRenderer = "auto";
var useColorEmoji = false;
</script>
<!-- webRenderer -->
<!-- useColorEmoji -->
<!-- pyodideCode -->
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>
<body>
<script>
window.addEventListener('load', function () {
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function (engineInitializer) {
return engineInitializer.initializeEngine({
renderer: webRenderer,
useColorEmoji: useColorEmoji,
});
}).then(function (appRunner) {
return appRunner.runApp();
});
});
</script>
</body>
</html> Try it and let me know if it worked. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a survey website using flet, it runs as dynamic site ( all on my server ), I run "python3 survey.py" and it works fine but I want to delete the splash animation, I tried build command and publish but it create a static site only, it is too slow for mobile. Does anybody know how disable it on dynamic ?
Beta Was this translation helpful? Give feedback.
All reactions