Skip to content

Commit

Permalink
Merge pull request #49 from haoxiuwen/doc-shengwang
Browse files Browse the repository at this point in the history
Modify Flutter UIKit
  • Loading branch information
haoxiuwen authored Jan 17, 2025
2 parents ad84e28 + a2605ef commit c08683d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/uikit/chatuikit/flutter/chatuikit_integrated.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
### 第一步 安装单群聊 UIKit

```base
flutter pub add em_chat_uikit
flutter pub add shengwang_chat_uikit
```

### 第二步 添加权限
Expand All @@ -30,7 +30,7 @@ NSCameraUsageDescription
NSMicrophoneUsageDescription
```

- Android: `em_chat_uikit` 已经在 `AndroidManifest.xml` 中添加以下权限, 无需再重复添加。
- Android: `shengwang_chat_uikit` 已经在 `AndroidManifest.xml` 中添加以下权限, 无需再重复添加。

```xml
<uses-permission android:name="android.permission.CAMERA" />
Expand All @@ -42,7 +42,7 @@ NSMicrophoneUsageDescription

```dart
// 导入头文件
import 'package:em_chat_uikit/chat_uikit.dart';
import 'package:shengwang_chat_uikit/chat_uikit.dart';
```

### 第四步 初始化单群聊 UIKit
Expand Down Expand Up @@ -82,7 +82,7 @@ ChatUIKit.instance.loginWithToken(userId: userId, token: token);
下面以会话列表和聊天组件组成的界面为例:

```dart
import 'package:em_chat_uikit/chat_uikit.dart';
import 'package:shengwang_chat_uikit/chat_uikit.dart';
import 'package:flutter/material.dart';
class Conversations extends StatefulWidget {
Expand Down

0 comments on commit c08683d

Please sign in to comment.