zego_zimkit 1.18.12 copy "zego_zimkit: ^1.18.12" to clipboard
zego_zimkit: ^1.18.12 copied to clipboard

A low-code plugin that provides a wrapper for IM widgets. Aims to simplify the development process by offering a user-friendly solution into applications.

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());
}

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"),
)

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,
                );
              },
            ));
          },
        ),
      ),
    );
  }
}