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();
}

Libraries

moca_matrix_sdk
Support for doing something awesome.