Showing
5 changed files
with
71 additions
and
18 deletions
| 1 | # This file tracks properties of this Flutter project. | 1 | # This file tracks properties of this Flutter project. |
| 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. | 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. |
| 3 | # | 3 | # |
| 4 | -# This file should be version controlled and should not be manually edited. | 4 | +# This file should be version controlled. |
| 5 | 5 | ||
| 6 | version: | 6 | version: |
| 7 | - revision: 5f105a6ca7a5ac7b8bc9b241f4c2d86f4188cf5c | 7 | + revision: 796c8ef79279f9c774545b3771238c3098dbefab |
| 8 | channel: stable | 8 | channel: stable |
| 9 | 9 | ||
| 10 | project_type: plugin | 10 | project_type: plugin |
| 11 | + | ||
| 12 | +# Tracks metadata for the flutter migrate command | ||
| 13 | +migration: | ||
| 14 | + platforms: | ||
| 15 | + - platform: root | ||
| 16 | + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 17 | + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 18 | + - platform: android | ||
| 19 | + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 20 | + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 21 | + - platform: ios | ||
| 22 | + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 23 | + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 24 | + - platform: macos | ||
| 25 | + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 26 | + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 27 | + - platform: web | ||
| 28 | + create_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 29 | + base_revision: 796c8ef79279f9c774545b3771238c3098dbefab | ||
| 30 | + | ||
| 31 | + # User provided section | ||
| 32 | + | ||
| 33 | + # List of Local paths (relative to this file) that should be | ||
| 34 | + # ignored by the migrate tool. | ||
| 35 | + # | ||
| 36 | + # Files that are not part of the templates will be ignored by default. | ||
| 37 | + unmanaged_files: | ||
| 38 | + - 'lib/main.dart' | ||
| 39 | + - 'ios/Runner.xcodeproj/project.pbxproj' |
example/web/icons/Icon-maskable-192.png
0 → 100644
5.46 KB
example/web/icons/Icon-maskable-512.png
0 → 100644
20.5 KB
| @@ -8,40 +8,52 @@ | @@ -8,40 +8,52 @@ | ||
| 8 | The path provided below has to start and end with a slash "/" in order for | 8 | The path provided below has to start and end with a slash "/" in order for |
| 9 | it to work correctly. | 9 | it to work correctly. |
| 10 | 10 | ||
| 11 | - Fore more details: | 11 | + For more details: |
| 12 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base | 12 | * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base |
| 13 | + | ||
| 14 | + This is a placeholder for base href that will be replaced by the value of | ||
| 15 | + the `--base-href` argument provided to `flutter build`. | ||
| 13 | --> | 16 | --> |
| 14 | - <base href="/"> | 17 | + <base href="$FLUTTER_BASE_HREF"> |
| 15 | 18 | ||
| 16 | <meta charset="UTF-8"> | 19 | <meta charset="UTF-8"> |
| 17 | <meta content="IE=Edge" http-equiv="X-UA-Compatible"> | 20 | <meta content="IE=Edge" http-equiv="X-UA-Compatible"> |
| 18 | - <meta name="description" content="A new Flutter project."> | 21 | + <meta name="description" content="Demonstrates how to use the mobile_scanner plugin."> |
| 19 | 22 | ||
| 20 | <!-- iOS meta tags & icons --> | 23 | <!-- iOS meta tags & icons --> |
| 21 | <meta name="apple-mobile-web-app-capable" content="yes"> | 24 | <meta name="apple-mobile-web-app-capable" content="yes"> |
| 22 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> | 25 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 23 | - <meta name="apple-mobile-web-app-title" content="example"> | 26 | + <meta name="apple-mobile-web-app-title" content="mobile_scanner_example"> |
| 24 | <link rel="apple-touch-icon" href="icons/Icon-192.png"> | 27 | <link rel="apple-touch-icon" href="icons/Icon-192.png"> |
| 25 | 28 | ||
| 26 | <!-- Favicon --> | 29 | <!-- Favicon --> |
| 27 | <link rel="icon" type="image/png" href="favicon.png"/> | 30 | <link rel="icon" type="image/png" href="favicon.png"/> |
| 28 | 31 | ||
| 29 | - <title>example</title> | 32 | + <title>mobile_scanner_example</title> |
| 30 | <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 | + var serviceWorkerVersion = null; | ||
| 38 | + </script> | ||
| 39 | + <!-- This script adds the flutter initialization JS code --> | ||
| 40 | + <script src="flutter.js" defer></script> | ||
| 31 | </head> | 41 | </head> |
| 32 | <body> | 42 | <body> |
| 33 | - <script src="https://unpkg.com/@zxing/library@0.19.1" type="application/javascript"></script> | ||
| 34 | - | ||
| 35 | - <!-- This script installs service_worker.js to provide PWA functionality to | ||
| 36 | - application. For more information, see: | ||
| 37 | - https://developers.google.com/web/fundamentals/primers/service-workers --> | ||
| 38 | <script> | 43 | <script> |
| 39 | - if ('serviceWorker' in navigator) { | ||
| 40 | - window.addEventListener('flutter-first-frame', function () { | ||
| 41 | - navigator.serviceWorker.register('flutter_service_worker.js'); | 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(); | ||
| 42 | }); | 53 | }); |
| 43 | } | 54 | } |
| 55 | + }); | ||
| 56 | + }); | ||
| 44 | </script> | 57 | </script> |
| 45 | - <script src="main.dart.js" type="application/javascript"></script> | ||
| 46 | </body> | 58 | </body> |
| 47 | </html> | 59 | </html> |
| 1 | { | 1 | { |
| 2 | - "name": "Mobile Scanner Example", | 2 | + "name": "mobile_scanner_example", |
| 3 | "short_name": "mobile_scanner_example", | 3 | "short_name": "mobile_scanner_example", |
| 4 | "start_url": ".", | 4 | "start_url": ".", |
| 5 | "display": "standalone", | 5 | "display": "standalone", |
| 6 | "background_color": "#0175C2", | 6 | "background_color": "#0175C2", |
| 7 | "theme_color": "#0175C2", | 7 | "theme_color": "#0175C2", |
| 8 | - "description": "A barcode and qr code scanner example.", | 8 | + "description": "Demonstrates how to use the mobile_scanner plugin.", |
| 9 | "orientation": "portrait-primary", | 9 | "orientation": "portrait-primary", |
| 10 | "prefer_related_applications": false, | 10 | "prefer_related_applications": false, |
| 11 | "icons": [ | 11 | "icons": [ |
| @@ -18,6 +18,18 @@ | @@ -18,6 +18,18 @@ | ||
| 18 | "src": "icons/Icon-512.png", | 18 | "src": "icons/Icon-512.png", |
| 19 | "sizes": "512x512", | 19 | "sizes": "512x512", |
| 20 | "type": "image/png" | 20 | "type": "image/png" |
| 21 | + }, | ||
| 22 | + { | ||
| 23 | + "src": "icons/Icon-maskable-192.png", | ||
| 24 | + "sizes": "192x192", | ||
| 25 | + "type": "image/png", | ||
| 26 | + "purpose": "maskable" | ||
| 27 | + }, | ||
| 28 | + { | ||
| 29 | + "src": "icons/Icon-maskable-512.png", | ||
| 30 | + "sizes": "512x512", | ||
| 31 | + "type": "image/png", | ||
| 32 | + "purpose": "maskable" | ||
| 21 | } | 33 | } |
| 22 | ] | 34 | ] |
| 23 | } | 35 | } |
-
Please register or login to post a comment