tencent_calls_uikit 2.9.3 copy "tencent_calls_uikit: ^2.9.3" to clipboard
tencent_calls_uikit: ^2.9.3 copied to clipboard

TUICallKit is a UIKit about audio&video calls launched by Tencent Cloud.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:tencent_calls_uikit/tencent_calls_uikit.dart';
import 'package:tuicall_kit_example/src/login_widget.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();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        localizationsDelegates: AppLocalizations.localizationsDelegates,
        supportedLocales: AppLocalizations.supportedLocales,
        navigatorObservers: [TUICallKit.navigatorObserver],
        builder: (context, child) => Scaffold(
              resizeToAvoidBottomInset: false,
              body: GestureDetector(
                onTap: () {
                  hideKeyboard(context);
                },
                child: child,
              ),
            ),
        home: const LoginWidget());
  }

  void hideKeyboard(BuildContext context) {
    FocusScopeNode currentFocus = FocusScope.of(context);
    if (!currentFocus.hasPrimaryFocus && currentFocus.focusedChild != null) {
      FocusManager.instance.primaryFocus?.unfocus();
    }
  }
}
copied to clipboard
50
likes
130
points
2.19k
downloads

Publisher

verified publishertrtc.io

Weekly Downloads

2024.09.13 - 2025.03.28

TUICallKit is a UIKit about audio&video calls launched by Tencent Cloud.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

crypto, file, flutter, path_provider, plugin_platform_interface, shared_preferences, tencent_cloud_chat_sdk, tencent_cloud_uikit_core

More

Packages that depend on tencent_calls_uikit