Navaron Bracke
Committed by GitHub

Merge pull request #1147 from navaronbracke/web_v1-0-0

chore: Migrate to web 1.0.0
@@ -36,7 +36,7 @@ jobs: @@ -36,7 +36,7 @@ jobs:
36 - uses: subosito/flutter-action@v2.12.0 36 - uses: subosito/flutter-action@v2.12.0
37 with: 37 with:
38 cache: true 38 cache: true
39 - flutter-version: '3.19' 39 + flutter-version: '3.22'
40 channel: 'stable' 40 channel: 'stable'
41 - name: Version 41 - name: Version
42 run: flutter doctor -v 42 run: flutter doctor -v
1 ## NEXT 1 ## NEXT
  2 +* This release requires Flutter 3.22.0 and Dart 3.4.
  3 +
2 * [Android] Fixed a leak of the barcode scanner. 4 * [Android] Fixed a leak of the barcode scanner.
3 * [Android] Fixed a crash when encountering invalid numbers for the scan window. 5 * [Android] Fixed a crash when encountering invalid numbers for the scan window.
  6 +* [Web] Migrates `package:web` to 1.0.0.
4 7
5 ## 5.1.1 8 ## 5.1.1
6 * This release fixes an issue with automatic starts in the examples. 9 * This release fixes an issue with automatic starts in the examples.
@@ -31,29 +31,8 @@ @@ -31,29 +31,8 @@
31 31
32 <title>mobile_scanner_example</title> 32 <title>mobile_scanner_example</title>
33 <link rel="manifest" href="manifest.json"> 33 <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>  
41 </head> 34 </head>
42 <body> 35 <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>
58 </body> 37 </body>
59 </html> 38 </html>
@@ -16,8 +16,8 @@ screenshots: @@ -16,8 +16,8 @@ screenshots:
16 path: example/screenshots/overlay.png 16 path: example/screenshots/overlay.png
17 17
18 environment: 18 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"
21 21
22 dependencies: 22 dependencies:
23 flutter: 23 flutter:
@@ -25,7 +25,7 @@ dependencies: @@ -25,7 +25,7 @@ dependencies:
25 flutter_web_plugins: 25 flutter_web_plugins:
26 sdk: flutter 26 sdk: flutter
27 plugin_platform_interface: ^2.0.2 27 plugin_platform_interface: ^2.0.2
28 - web: ^0.5.1 28 + web: ^1.0.0
29 29
30 dev_dependencies: 30 dev_dependencies:
31 flutter_test: 31 flutter_test: