| Add a WebAssembly backend for the example 728acaa nandithebull 15h ago | 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 | |
| 8 | The path provided below has to start and end with a slash "/" in order for |
| 9 | it to work correctly. |
| 10 | |
| 11 | For more details: |
| 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`. |
| 16 | --> |
| 17 | <base href="$FLUTTER_BASE_HREF"> |
| 18 | |
| 19 | <meta charset="UTF-8"> |
| 20 | <meta content="IE=Edge" http-equiv="X-UA-Compatible"> |
| 21 | <meta name="description" content="A Mandelbrot explorer whose pixels are computed in V, compiled to WebAssembly."> |
| 22 | |
| 23 | <!-- iOS meta tags & icons --> |
| 24 | <meta name="mobile-web-app-capable" content="yes"> |
| 25 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 26 | <meta name="apple-mobile-web-app-title" content="vflutter_ffi_example"> |
| 27 | <link rel="apple-touch-icon" href="icons/Icon-192.png"> |
| 28 | |
| 29 | <!-- Favicon --> |
| 30 | <link rel="icon" type="image/png" href="favicon.png"/> |
| 31 | |
| 32 | <title>vflutter_ffi — V in the browser</title> |
| 33 | <link rel="manifest" href="manifest.json"> |
| 34 | </head> |
| 35 | <body> |
| 36 | <!-- |
| 37 | The V kernel, compiled to WebAssembly by tool/build_wasm.sh (`just wasm`). |
| 38 | Loading it defines the global createVFlutterModule, which |
| 39 | lib/src/backend_web.dart calls to instantiate the module. |
| 40 | |
| 41 | Deliberately not `async`: the factory has to exist before Dart's |
| 42 | initialize() runs. The file is ~12 KB of glue next to a ~30 KB .wasm, and |
| 43 | the wasm itself is still fetched lazily by the factory, so this costs |
| 44 | essentially nothing up front. |
| 45 | --> |
| 46 | <script src="vflutter.js"></script> |
| 47 | |
| 48 | <!-- |
| 49 | You can customize the "flutter_bootstrap.js" script. |
| 50 | This is useful to provide a custom configuration to the Flutter loader |
| 51 | or to give the user feedback during the initialization process. |
| 52 | |
| 53 | For more details: |
| 54 | * https://docs.flutter.dev/platform-integration/web/initialization |
| 55 | --> |
| 56 | <script src="flutter_bootstrap.js" async></script> |
| 57 | </body> |
| 58 | </html> |