This commit is contained in:
2024-09-20 12:46:28 +02:00
parent c347021dc9
commit c0984b7225
2 changed files with 12 additions and 11 deletions

View File

@@ -456,7 +456,7 @@ class _HomeTileGridState extends State<HomeTileGrid> {
children: [ children: [
const SizedBox(height: 20.0), const SizedBox(height: 20.0),
Text( Text(
"Mzanzi Innovation Hub 2", "Mzanzi Innovation Hub 3",
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,

View File

@@ -120,22 +120,23 @@
</picture> </picture>
<!-- Versioning --> <!-- Versioning -->
<script src="flutter_bootstrap.js" defer></script> <!-- <script src="flutter.js" defer></script> -->
<script defer> <script defer>
{ { flutter_js } } //var serviceWorkerVersion = '{{flutter_service_worker_version}}';
{ { flutter_build_config } }
window.addEventListener('load', function () {
window.addEventListener('load', function (env) {
{{flutter_js}}
{{flutter_build_config}}
_flutter.loader.load({ _flutter.loader.load({
serviceWorker: { serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion, serviceWorkerVersion: {{flutter_service_worker_version}},
}, },
onEntrypointLoaded: async function (engineInitializer) { onEntrypointLoaded: function (engineInitializer) {
let appRunner = await engineInitializer.initializeEngine(); engineInitializer.initializeEngine().then(function (appRunner) {
appRunner.runApp();
await appRunner.runApp(); });
} }
}); });
}); });
</script> </script>