chat_app_plugin 0.0.7
chat_app_plugin: ^0.0.7 copied to clipboard
Flutter Realtime Chat App Plugin is a highly efficient and versatile chat plugin that allows developers to easily integrate real-time messaging functionality into their Flutter apps. With this plugin, [...]
import 'package:chat_app_plugin_example/Screens/Register.dart';
import 'package:chat_app_plugin_example/User.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'apis.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
name: "Chatapp",
options: const FirebaseOptions(
apiKey: apiss.akey,
appId: apiss.appId,
messagingSenderId: apiss.messagesender,
projectId: apiss.projectid));
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
// Users users = Users(dp: "", email: "", password: "", uid: "");
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Register(),
);
}
}