tencent_float_chat_widget 1.0.3 tencent_float_chat_widget: ^1.0.3 copied to clipboard
A plugin providing a floating chat widget integrated with Tencent's chat services for real-time messaging.
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:tencent_float_chat_widget/tencent_float_chat_widget.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return GetMaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Float chat example app'),
),
resizeToAvoidBottomInset: false,
body: OrientationBuilder(
builder: (BuildContext context, Orientation orientation) {
debugPrint(orientation.toString());
return const Stack(
children: [
Center(
child: FloatChatWidget(roomId: ''),
),
InputWidget(),
],
);
},
),
),
);
}
}