tencent_im_sdk_plugin 4.1.2 copy "tencent_im_sdk_plugin: ^4.1.2" to clipboard
tencent_im_sdk_plugin: ^4.1.2 copied to clipboard

discontinuedreplaced by: tencent_cloud_chat_sdk
outdated

Instant Messaging (Instant Messaging) is developed based on QQ's underlying IM capabilities.

example/lib/main.dart

import 'package:example/config/config.dart';
import 'package:example/custom_animation.dart';
import 'package:example/index/index.dart';
import 'package:example/provider/event.dart';
import 'package:example/provider/notice.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'i18n/strings.g.dart';
import 'package:statsfl/statsfl.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  LocaleSettings.useDeviceLocale();
  runApp(
    StatsFl(
        isEnabled: true, //Toggle on/off
        width: 600, //Set size
        height: 20, //
        maxFps: 90, // Support custom FPS target (default is 60)
        showText: true, // Hide text label
        sampleTime: .5, //Interval between fps calculations, in seconds.
        totalTime: 15, //Total length of timeline, in seconds.
        align: Alignment.topLeft, //Alignment of statsbox
        child: TranslationProvider(
      child: MultiProvider(
        providers: [
          ChangeNotifierProvider(create: (_) => Notice()),
          ChangeNotifierProvider(create: (_) => Event()),
        ],
        child: const APIExampleApp(),
      ),
    ))
  );
  configLoading();
}

class APIExampleApp extends StatelessWidget {
  const APIExampleApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
   
    return MaterialApp(
      locale: TranslationProvider.of(context).flutterLocale,
      supportedLocales: LocaleSettings.supportedLocales,
      localizationsDelegates: GlobalMaterialLocalizations.delegates,
      showPerformanceOverlay: true,
      home: const Index(),
      title: Config.appName,
      builder:   EasyLoading.init(),
    );
  }
}

void configLoading() {
  EasyLoading.instance
    ..displayDuration = const Duration(milliseconds: 2000)
    ..indicatorType = EasyLoadingIndicatorType.fadingCircle
    ..loadingStyle = EasyLoadingStyle.dark
    ..indicatorSize = 45.0
    ..radius = 10.0
    ..progressColor = Colors.yellow
    ..backgroundColor = Colors.green
    ..indicatorColor = Colors.yellow
    ..textColor = Colors.yellow
    ..maskColor = Colors.blue.withOpacity(0.5)
    ..userInteractions = true
    ..dismissOnTap = false
    ..customAnimation = CustomAnimation();
}
29
likes
0
pub points
80%
popularity

Publisher

verified publishercomm.qq.com

Instant Messaging (Instant Messaging) is developed based on QQ's underlying IM capabilities.

Homepage

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, json_annotation, tencent_im_sdk_plugin_platform_interface, tencent_im_sdk_plugin_web, uuid

More

Packages that depend on tencent_im_sdk_plugin