index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!--
  5. If you are serving your web app in a path other than the root, change the
  6. href value below to reflect the base path you are serving from.
  7. The path provided below has to start and end with a slash "/" in order for
  8. it to work correctly.
  9. For more details:
  10. * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
  11. This is a placeholder for base href that will be replaced by the value of
  12. the `--base-href` argument provided to `flutter build`.
  13. -->
  14. <base href="$FLUTTER_BASE_HREF">
  15. <meta charset="UTF-8">
  16. <meta content="IE=Edge" http-equiv="X-UA-Compatible">
  17. <meta name="description" content="A new Flutter project.">
  18. <!-- iOS meta tags & icons -->
  19. <meta name="apple-mobile-web-app-capable" content="yes">
  20. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  21. <meta name="apple-mobile-web-app-title" content="flutter_provider_demo">
  22. <link rel="apple-touch-icon" href="icons/Icon-192.png">
  23. <!-- Favicon -->
  24. <link rel="icon" type="image/png" href="favicon.png"/>
  25. <title>flutter_provider_demo</title>
  26. <link rel="manifest" href="manifest.json">
  27. <script>
  28. // The value below is injected by flutter build, do not touch.
  29. var serviceWorkerVersion = null;
  30. </script>
  31. <!-- This script adds the flutter initialization JS code -->
  32. <script src="flutter.js" defer></script>
  33. </head>
  34. <body>
  35. <script>
  36. window.addEventListener('load', function(ev) {
  37. // Download main.dart.js
  38. _flutter.loader.loadEntrypoint({
  39. serviceWorker: {
  40. serviceWorkerVersion: serviceWorkerVersion,
  41. },
  42. onEntrypointLoaded: function(engineInitializer) {
  43. engineInitializer.initializeEngine().then(function(appRunner) {
  44. appRunner.runApp();
  45. });
  46. }
  47. });
  48. });
  49. </script>
  50. </body>
  51. </html>