|
4 months ago | |
---|---|---|
.gitlab | 8 months ago | |
doc | 9 months ago | |
example | 7 months ago | |
home | 9 months ago | |
lib | 4 months ago | |
olm@efd17631b1 | 6 months ago | |
test | 4 months ago | |
test_driver | 4 months ago | |
.gitignore | 5 months ago | |
.gitlab-ci.yml | 4 months ago | |
.metadata | 1 year ago | |
CHANGELOG.md | 1 year ago | |
CONTRIBUTING.md | 9 months ago | |
LICENSE | 1 year ago | |
README.md | 4 months ago | |
analysis_options.yaml | 5 months ago | |
build.yaml | 7 months ago | |
prepare.sh | 5 months ago | |
pubspec.yaml | 5 months ago | |
test.sh | 5 months ago | |
test_driver.sh | 6 months ago |
+++ This is a fork of famedlysdk to statisfy FurryChat (fork of FluffyChat) needs +++
Matrix SDK for the famedly talk app written in dart.
The API is documented here: famedly.gitlab.io/famedlysdk/famedlysdk/famedlysdk-library.html
famedlysdk:
git:
url: https://gitlab.com/famedly/famedlysdk.git
import 'package:flutter/material.dart';
import 'package:famedlysdk/famedlysdk.dart';
Client client = Client("HappyChat");
Take a look here for an example store: https://gitlab.com/ChristianPauly/fluffychat-flutter/snippets
client.onLoginStateChanged.stream.listen((bool loginState){
print("LoginState: ${loginState.toString()}");
});
client.onEvent.stream.listen((EventUpdate eventUpdate){
print("New event update!");
});
client.onRoomUpdate.stream.listen((RoomUpdate eventUpdate){
print("New room update!");
});
try {
await client.checkHomeserver("https://yourhomeserver.abc");
await client.login("username", "password");
}
catch(e) {
print('No luck...');
}
await client.getRoomById('your_room_id').sendTextEvent('Hello world');