locorda_flutter_core 0.5.1 copy "locorda_flutter_core: ^0.5.1" to clipboard
locorda_flutter_core: ^0.5.1 copied to clipboard

Locorda Flutter Core - Sync offline-first apps using your user's remote storage

locorda_flutter_core #

Shared Flutter base types used by locorda_flutter and backend integration packages (locorda_solid, locorda_gdrive, …). This package defines the contracts that allow the main thread and backend plugins to interoperate.

This is an internal package. Application code should depend on locorda or locorda_flutter. Backend implementors depend on this package to satisfy RemoteIntegration.

Exports #

Type Description
RemoteIntegration Combined RemoteMainHandler + RemoteUiAdapter — implement to create a backend plugin
LocordaGraph Thin wrapper around RdfGraph used as the unit of transfer between threads

Implementing a custom backend #

import 'package:locorda_flutter_core/locorda_flutter_core.dart';

class MyBackendIntegration implements RemoteIntegration {
  // RemoteMainHandler — main thread side (auth, UI, worker bridge)
  @override
  String get id => 'my-backend';
  // ...

  // RemoteUiAdapter — status widget integration
  // ...
}

Further reading #

0
likes
150
points
94
downloads

Documentation

API reference

Publisher

verified publisherlocorda.dev

Weekly Downloads

Locorda Flutter Core - Sync offline-first apps using your user's remote storage

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#rdf #crdt #solid #offline-first #sync

License

MIT (license)

Dependencies

flutter, locorda_core, locorda_rdf_core, locorda_ui, locorda_worker

More

Packages that depend on locorda_flutter_core