Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Navaron Bracke
2024-08-13 10:53:06 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40d080d55daaec2b239aa204277e1c9351e89b96
40d080d5
1 parent
7739f5fb
update web example bootstrapping for Flutter 3.22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
22 deletions
example/web/index.html
example/web/index.html
View file @
40d080d
...
...
@@ -31,29 +31,8 @@
<title>
mobile_scanner_example
</title>
<link
rel=
"manifest"
href=
"manifest.json"
>
<script>
// The value below is injected by flutter build, do not touch.
const
serviceWorkerVersion
=
null
;
</script>
<!-- This script adds the flutter initialization JS code -->
<script
src=
"flutter.js"
defer
></script>
</head>
<body>
<script>
window
.
addEventListener
(
'load'
,
function
(
ev
)
{
// Download main.dart.js
_flutter
.
loader
.
loadEntrypoint
({
serviceWorker
:
{
serviceWorkerVersion
:
serviceWorkerVersion
,
},
onEntrypointLoaded
:
function
(
engineInitializer
)
{
engineInitializer
.
initializeEngine
().
then
(
function
(
appRunner
)
{
appRunner
.
runApp
();
});
}
});
});
</script>
<script
src=
"flutter_bootstrap.js"
async
></script>
</body>
</html>
...
...
Please
register
or
login
to post a comment