kefu_flutter 0.0.2 kefu_flutter: ^0.0.2 copied to clipboard
This is a customer service system based on Xiaomi Message Cloud. The flutter version may be the best open source customer service solution for flutter.
客服系统开发者QQ交流群: 623661658
欢迎使用本客服系统 - kefu_flutter #
本项目关联GIT项目资源连接 #
本系统 是基于小米消息云实现的一款简单实用的面向多终端的客服系统,本系统简单易用,易扩展,易整合现有的业务系统,无缝对接自有业务。
项目依赖库 #
flutter_mimc: ^0.1.0
dio: ^2.1.13
image_picker: ^0.6.1+3
shared_preferences: ^0.5.3+4
provider: ^3.2.0
flutter_advanced_networkimage: ^0.5.0
Android 你应该添加的权限 #
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
IOS 你应该添加的权限 #
<key>NSCameraUsageDescription</key>
<key>NSPhotoLibraryUsageDescription</key>
EXAMPLE AND INSTALL #
dependencies: kefu_flutter: $lastVersion
import 'package:kefu_flutter/kefu_flutter.dart';
KeFuStore _keFu;
@override
void initState() {
// 配置文件 (1)
KeFuStore.configs(
host: "",
appID: "",
appKey: "",
appSecret: ""
);
// 获得实例并监听数据动态 (2)
_keFu = KeFuStore.getInstance;
// 获得实例并监听数据动态 (3)
_keFu.addListener((){
_keFu = KeFuStore.getInstance;
debugPrint("_keFu对象变动");
if(mounted) setState(() {});
});
}
/// 获得客服页面视图
_keFu.view();
/// 然后记得销毁
@override
void dispose() {
_keFu?.dispose();
super.dispose();
}