You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the flutter team announcing element embedding, it's not quite straightforward yet to use it outside flutter web, for example in React, Solid, Svelte etc. Here are the steps you need to take to make the element embedding sample to work with React.
git clone https://github.com/flutter/samples/tree/main/experimental/element_embedding_demo && cd samples/experimental/element_embedding_demo
flutter build web --profile --dart-define=Dart2jsOptimization=O0
Because we're going to make a couple adjustments to the build output, we don't want to have minified javascript. This does however mean that the client must download a bigger bundle.
As far as I can see, this looks like a guideline for helping others. Since it's not a Flutter issue, closing this from here. Thanks for your contribution!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
With the flutter team announcing element embedding, it's not quite straightforward yet to use it outside flutter web, for example in React, Solid, Svelte etc. Here are the steps you need to take to make the element embedding sample to work with React.
git clone https://github.com/flutter/samples/tree/main/experimental/element_embedding_demo && cd samples/experimental/element_embedding_demo
flutter build web --profile --dart-define=Dart2jsOptimization=O0
Because we're going to make a couple adjustments to the build output, we don't want to have minified javascript. This does however mean that the client must download a bigger bundle.
build/web/main.dart.js
build/web/flutter.js
flutter_init.js
insidepublic
The text was updated successfully, but these errors were encountered: