flutter_openim_sdk 3.8.2 copy "flutter_openim_sdk: ^3.8.2" to clipboard
flutter_openim_sdk: ^3.8.2 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(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    OpenIM.iMManager.initSDK(
        platformID: 1,
        apiAddr: '',
        wsAddr: '',
        dataDir: '/',
        listener: OnConnectListener());
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: [
            TextButton(onPressed: () {}, child: Text('login')),
          ],
        ),
      ),
    );
  }
}
20
likes
140
points
460
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

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_openim_sdk