0 purchases
zego zimkit
ZIMKit(ZegoCloud In-App Chat UIKit) #
🥳beta support:
Create peer-to-peer chat / Create group chat/ Join group chat
Send text, picture(<10M), gif(<10M), video(<100M), file(<100M)
Long press the conversation list item to delete the conversation or exit the group chat
custom ui (Please check widgets' parameters)
✨Coming soon:
Invite to join group chat / set user avatar /set group avatar
download files
1. init imkit #
void main() {
ZIMKit().init(
appID: , // your appid
appSign: '', // your appSign
);
runApp(const ZIMKitDemo());
}
copied to clipboard
2. user login #
ElevatedButton(
onPressed: () async {
await ZIMKit()
.connectUser(id: userID.text, name: userName.text);
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (context) =>
const ZIMKitDemoHomePage(),
),
);
},
child: const Text("login"),
)
copied to clipboard
3. enjoy it #
class ZIMKitDemoHomePage extends StatelessWidget {
const ZIMKitDemoHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async => false,
child: Scaffold(
appBar: AppBar(title: const Text('Conversations')),
body: ZIMKitConversationListView(
onPressed: (context, conversation, defaultAction) {
Navigator.push(context, MaterialPageRoute(
builder: (context) {
return ZIMKitMessageListPage(
conversationID: conversation.id,
conversationType: conversation.type,
);
},
));
},
),
),
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.