package:web | Flutter multi-view | WASM
This release combines three amazing new features:
- Migration of all packages to
package:web
and the new js interop mechanism, replacingdart:html
. - Adding support for Flutter multi-view embedding.
- Added experimental support for compiling to WASM.
... along with a bulk of smaller features, improvements and bugfixes.
We also published a new demo site showcasing the multi-view embedding here: https://jaspr-flutter-multiview-demo.web.app/
Changelogs
jaspr, jaspr_cli, jaspr_test
-
BREAKING Migrated all packages to
package:web
, replacingdart:html
. -
BREAKING Made
ComponentsBinding.attachRootComponent()
andComponentTester.pumpComponent()
synchronous. -
Added
InheritedModel<T>
similar to Flutters InheritedModel -
Added
css.layer()
,css.supports()
andcss.keyframes()
rules. -
Added
ViewTransitionMixin
to use view transitions in aStatefulComponent
. -
Added new
--experimental-wasm
flag tojaspr serve
andjaspr build
. -
Improved html formatting on the server to not introduce unwanted whitespaces.
-
Fixed server issue during tests where the web directory would never resolve.
-
Fixed issue with unhandled parameter types of client components.
jaspr_flutter_embed
-
BREAKING Migrated to
package:web
. -
BREAKING Added support for multi-view embedding. This allows you to use
FlutterEmbedView
multiple times across
the website and add or remove views at any time. -
Improved internals to use deferred imports for all imported flutter libraries.
-
Added
FlutterEmbedView.preload()
function to manually trigger the preload of all deferred libraries before rendering
a Flutter view. -
Added
FlutterEmbedView.deferred()
constructor as an easy way to work with deferred imports of widgets. -
Updated sdk constraints of flutter to
>=3.24.0 <4.0.0
and dart to>=3.5.0 <4.0.0
.
jaspr_serverpod
- Bump
serverpod
to2.1.1