ditto_live_web_alpha 0.0.1 ditto_live_web_alpha: ^0.0.1 copied to clipboard
An alpha build of the Ditto SDK for Flutter Web
ditto_live_web_alpha #
Warning
This plugin is an early alpha which enables users to use Ditto on web platforms. Other platforms will not be supported by this package, that is covered by package:ditto_live
For more information, consult the docs for package:ditto_live
Installation #
- Add the package to your
pubspec.yaml
, or runflutter pub add ditto_live_web_alpha
- Edit the
index.html
of your app to load the Ditto core WASM library in the<body>
:
<!-- before -->
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
<!-- after -->
<body>
<script type="module">
import * as dittoJS from "/assets/packages/ditto_live_web_alpha/lib/assets/ditto.es6.js";
window.dittoJS = dittoJS;
</script>
<script src="flutter_bootstrap.js" async></script>
</body>
Known issues #
Certain features of package:ditto_live
are not supported by this plugin. This plugin supports:
OnlinePlaygroundIdentity
onlyditto.store.execute(/* ... */)
- Observers
- Sync Subscriptions
- Small peer info
- Logging (via
DittoLogger
)
For API docs about any of these features, consult the API docs for package:ditto_live
. For docs about Ditto in general, go to <docs.ditto.live>