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

Shared contracts for Locorda Flutter backends — defines RemoteIntegration, LocordaGraph, and the interface that backend packages (Google Drive, Solid Pods, etc.) implement.

locorda_flutter_core #

pub package license

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

Shared contracts for Locorda Flutter backends — defines RemoteIntegration, LocordaGraph, and the interface that backend packages (Google Drive, Solid Pods, etc.) implement.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#crdt #offline-first #sync #flutter #rdf

License

MIT (license)

Dependencies

flutter, locorda_core, locorda_rdf_core, locorda_ui, locorda_worker

More

Packages that depend on locorda_flutter_core