netease_corekit_im 1.0.0 netease_corekit_im: ^1.0.0 copied to clipboard
Core IM components for IM flutter.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add netease_corekit_im
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
netease_corekit_im: ^1.0.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:netease_corekit_im/im_kit_client.dart';
import 'package:netease_corekit_im/model/contact_info.dart';
import 'package:netease_corekit_im/model/team_models.dart';
import 'package:netease_corekit_im/repo/config_repo.dart';
import 'package:netease_corekit_im/repo/misc_repo.dart';
import 'package:netease_corekit_im/service_locator.dart';
import 'package:netease_corekit_im/services/contact/contact_provider.dart';
import 'package:netease_corekit_im/services/contact/contact_provider_impl.dart';
import 'package:netease_corekit_im/services/login/login_service.dart';
import 'package:netease_corekit_im/services/login/login_service_impl.dart';
import 'package:netease_corekit_im/services/message/chat_message.dart';
import 'package:netease_corekit_im/services/message/message_provider.dart';
import 'package:netease_corekit_im/services/message/message_provider_impl.dart';
import 'package:netease_corekit_im/services/team/team_provider.dart';
import 'package:netease_corekit_im/services/team/team_provider_impl.dart';
import 'package:netease_corekit_im/services/user_info/user_info_provider.dart';
import 'package:netease_corekit_im/services/user_info/user_info_provider_impl.dart';
import 'package:netease_corekit_im/utils/preference_utils.dart';