1. 02 Feb, 2024 1 commit
    • Jackson Gardner's avatar
      Wasm/JS Dual Compile with the flutter tool (#141396) · ba626dc8
      Jackson Gardner authored
      This implements dual compile via the newly available flutter.js bootstrapping APIs for intelligent build fallback.
      * Users can now use the `FlutterLoader.load` API from flutter.js
      * Flutter tool injects build info into the `index.html` of the user so that the bootstrapper knows which build variants are available to bootstrap
      * The semantics of the `--wasm` flag for `flutter build web` have changed:
        - Instead of producing a separate `build/web_wasm` directory, the output goes to the `build/web` directory like a normal web build
        - Produces a dual build that contains two build variants: dart2wasm+skwasm and dart2js+CanvasKit. The dart2wasm+skwasm will only work on Chrome in a cross-origin isolated context, all other environments will fall back to dart2js+CanvasKit.
        - `--wasm` and `--web-renderer` are now mutually exclusive. Since there are multiple build variants with `--wasm`, the web renderer cannot be expressed via a single command-line flag. For now, we are hard coding what build variants are produced with the `--wasm` flag, but I plan on making this more customizable in the future.
      * Build targets now can optionally provide a "build key" which can uniquely identify any specific parameterization of that build target. This way, the build target can invalidate itself by changing its build key. This works a bit better than just stuffing everything into the environment defines because (a) it doesn't invalidate the entire build, just the targets which are affected and (b) settings for multiple build variants don't translate well to the flat map of environment defines.
      ba626dc8
  2. 01 Feb, 2024 1 commit
  3. 24 Jan, 2024 1 commit
  4. 19 Jan, 2024 1 commit
  5. 12 Jan, 2024 1 commit
  6. 09 Jan, 2024 1 commit
  7. 05 Jan, 2024 2 commits
  8. 04 Jan, 2024 1 commit
  9. 02 Jan, 2024 1 commit
  10. 20 Dec, 2023 1 commit
  11. 19 Dec, 2023 1 commit
  12. 15 Dec, 2023 3 commits
  13. 06 Dec, 2023 1 commit
  14. 15 Nov, 2023 1 commit
    • Srujan Gaddam's avatar
      Pin package:web 0.4.0 (#138428) · d8ffc739
      Srujan Gaddam authored
      This version is needed so that dart:js_interop can move to extension
      types. Also adds some code to handle some breaking changes:
      
      - Body -> Response. Body was an IDL interface mixin type we exposed in
      dart:html. Going forward, users should either use Request or Response.
      - Casts to JSAny. These are temporary until we move package:web types to
      extension types. Currently, package:web types can't implement JSObject
      as JSObject will move to be an extension type itself.
      Co-authored-by: 's avatarKevin Moore <kevmoo@users.noreply.github.com>
      d8ffc739
  15. 13 Nov, 2023 1 commit
  16. 03 Nov, 2023 2 commits
  17. 01 Nov, 2023 1 commit
  18. 31 Oct, 2023 1 commit
  19. 25 Oct, 2023 1 commit
  20. 20 Oct, 2023 1 commit
  21. 19 Oct, 2023 1 commit
  22. 12 Oct, 2023 1 commit
  23. 11 Oct, 2023 1 commit
  24. 29 Sep, 2023 1 commit
  25. 20 Sep, 2023 2 commits
  26. 12 Sep, 2023 1 commit
  27. 25 Aug, 2023 1 commit
  28. 16 Aug, 2023 1 commit
  29. 15 Aug, 2023 1 commit
  30. 10 Aug, 2023 1 commit
  31. 09 Aug, 2023 1 commit
  32. 08 Aug, 2023 1 commit
  33. 04 Aug, 2023 1 commit
  34. 01 Aug, 2023 1 commit
  35. 27 Jul, 2023 1 commit