[Readme] Update

This commit is contained in:
Christian Pauly 2019-10-16 07:47:41 +00:00
parent b219cc8b5e
commit bb694a90e7
1 changed files with 2 additions and 12 deletions

View File

@ -16,22 +16,11 @@ The API is documented here: [famedly.gitlab.io/famedlysdk](https://famedly.gitla
famedlysdk:
git:
url: https://gitlab.com/famedly/famedlysdk.git
ref: 77be6102f6cbb2e01adc28f9caa3aa583f914235
```
(Optional) Import the store
```yaml
famedlysdk_store_sqflite:
git:
url: https://gitlab.com/famedly/libraries/famedlysdk-store.git
ref: 17fbbed1ea9b04ca041e9479d4e74bb4d2c78d55
```
```dart
import 'package:flutter/material.dart';
import 'package:famedlysdk/famedlysdk.dart';
import 'package:famedlysdk-store/ famedlysdk_store_sqflite.dart'; // Optional
```
2. Create a new client:
@ -40,7 +29,8 @@ import 'package:famedlysdk-store/ famedlysdk_store_sqflite.dart'; // Optional
Client matrix = Client("HappyChat");
```
Or with store:
Take a look here for an example store:
https://gitlab.com/famedly/famedlysdk/snippets/1904187
```dart
Client matrix = Client("HappyChat", store: Store(this));