locorda_flutter_core 0.5.2
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 #
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
locordaorlocorda_flutter. Backend implementors depend on this package to satisfyRemoteIntegration.
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 #
- locorda_flutter — Flutter facade built on top of this package
- locorda_solid — reference
RemoteIntegrationimplementation - locorda_gdrive — alternative
RemoteIntegrationimplementation