flutter_openim_sdk 3.3.0 copy "flutter_openim_sdk: ^3.3.0" to clipboard
flutter_openim_sdk: ^3.3.0 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: '/',
        objectStorage: 'minio',
        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')),
          ],
        ),
      ),
    );
  }
}
18
likes
0
pub points
86%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_openim_sdk