moca_matrix_sdk 0.16.15
SDKflutter
Platformioswindowslinux
Dart Matrix SDK wrapper for Moca App. This library gives the developer methods for interacting with a matrix server
Integrate Matrix server to your Flutter app
Features
User
- Register
- Login
- Logout
Rooms
- Get joined
- Get invites
- Send invite to DM
- Accept DM invite
Messages
- Send text
Usage
void main() async {
var matrix = MatrixRust();
await matrix.init(homeserverUrl: "https://your-matrix-url");
await matrix.login(username: "@user:your-matrix.com", password: "yourPassword\$");
final inviteRes = await matrix.sendDmInvite(username: "@otherUser:your-matrix.com");
await matrix.logout();
}