flutter_openim_sdk 3.8.3+hotfix.10.1 copy "flutter_openim_sdk: ^3.8.3+hotfix.10.1" to clipboard
flutter_openim_sdk: ^3.8.3+hotfix.10.1 copied to clipboard

An instant messaging plug-in that supports Android and IOS. And the server is also all open source.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    OpenIM.iMManager.initSDK(
      platformID: 2,
      apiAddr: 'https://www.openim.io/api',
      wsAddr: 'https://www.openim.io/',
      dataDir: '/',
      listener: OnConnectListener(),
    );
    OpenIM.iMManager.messageManager.customBusinessListener = OnCustomBusinessListener(
      onRecvCustomBusinessMessage: (message) {},
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            TextButton(onPressed: () {}, child: const Text('login')),
          ],
        ),
      ),
    );
  }
}
25
likes
150
points
167
downloads

Publisher

unverified uploader

Weekly Downloads

An instant messaging plug-in that supports Android and IOS. And the server is also all open source.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

AGPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on flutter_openim_sdk

Packages that implement flutter_openim_sdk