zego_zimkit 1.17.2 copy "zego_zimkit: ^1.17.2" to clipboard
zego_zimkit: ^1.17.2 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,
                );
              },
            ));
          },
        ),
      ),
    );
  }
}

11
likes
130
pub points
89%
popularity
screenshot

Publisher

verified publisherzegocloud.com

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.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

async, cached_network_image, chewie, cupertino_icons, encrypt, equatable, file_picker, flutter, is_lock_screen2, logging, permission_handler, plugin_platform_interface, provider, shared_preferences, video_player, zego_callkit, zego_plugin_adapter, zego_uikit_signaling_plugin, zego_zim, zego_zpns

More

Packages that depend on zego_zimkit