easychat 0.0.12 easychat: ^0.0.12 copied to clipboard
Full featured and complete chat package for Flutter and Firebase
import 'package:easyuser/easyuser.dart';
// import 'package:example/firebase_options.dart';
import 'package:example/screens/home/home.screen.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:easy_locale/easy_locale.dart';
import 'package:easychat/easychat.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
lo.init();
await Firebase.initializeApp(
// options: DefaultFirebaseOptions.currentPlatform,
);
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();
UserService.instance.init(
// collectionName: 'my_members_col',
);
ChatService.instance.init();
}
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: HomeScreen(),
);
}
}