Skip to content

Commit 5dd8342

Browse files
Merge pull request juliansteenbakker#1147 from navaronbracke/web_v1-0-0
chore: Migrate to web 1.0.0
2 parents f4537b8 + 080091f commit 5dd8342

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

.github/workflows/flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- uses: subosito/flutter-action@v2.12.0
3737
with:
3838
cache: true
39-
flutter-version: '3.19'
39+
flutter-version: '3.22'
4040
channel: 'stable'
4141
- name: Version
4242
run: flutter doctor -v

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## NEXT
2+
* This release requires Flutter 3.22.0 and Dart 3.4.
3+
24
* [Android] Fixed a leak of the barcode scanner.
35
* [Android] Fixed a crash when encountering invalid numbers for the scan window.
6+
* [Web] Migrates `package:web` to 1.0.0.
47

58
## 5.1.1
69
* This release fixes an issue with automatic starts in the examples.

example/web/index.html

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,8 @@
3131

3232
<title>mobile_scanner_example</title>
3333
<link rel="manifest" href="manifest.json">
34-
35-
<script>
36-
// The value below is injected by flutter build, do not touch.
37-
const serviceWorkerVersion = null;
38-
</script>
39-
<!-- This script adds the flutter initialization JS code -->
40-
<script src="flutter.js" defer></script>
4134
</head>
4235
<body>
43-
<script>
44-
window.addEventListener('load', function(ev) {
45-
// Download main.dart.js
46-
_flutter.loader.loadEntrypoint({
47-
serviceWorker: {
48-
serviceWorkerVersion: serviceWorkerVersion,
49-
},
50-
onEntrypointLoaded: function(engineInitializer) {
51-
engineInitializer.initializeEngine().then(function(appRunner) {
52-
appRunner.runApp();
53-
});
54-
}
55-
});
56-
});
57-
</script>
36+
<script src="flutter_bootstrap.js" async></script>
5837
</body>
5938
</html>

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ screenshots:
1616
path: example/screenshots/overlay.png
1717

1818
environment:
19-
sdk: ">=3.3.0 <4.0.0"
20-
flutter: ">=3.19.0"
19+
sdk: ">=3.4.0 <4.0.0"
20+
flutter: ">=3.22.0"
2121

2222
dependencies:
2323
flutter:
2424
sdk: flutter
2525
flutter_web_plugins:
2626
sdk: flutter
2727
plugin_platform_interface: ^2.0.2
28-
web: ^0.5.1
28+
web: ^1.0.0
2929

3030
dev_dependencies:
3131
flutter_test:

0 commit comments

Comments
 (0)