flutter_chat 0.1.4 flutter_chat: ^0.1.4 copied to clipboard
Chat helper for Flutter android and iOS using firebase as backend services.
import 'package:flutter_chat/chatData.dart';
import 'package:flutter/material.dart';
import 'package:flutter_chat/chatWidget.dart';
class WelcomeScreen extends StatefulWidget {
static const String id = "welcome_screen";
@override
_WelcomeScreenState createState() => _WelcomeScreenState();
}
class _WelcomeScreenState extends State<WelcomeScreen> {
@override
void initState() {
super.initState();
ChatData.init("Just Chat",context);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: ChatWidget.getAppBar(),
backgroundColor: Colors.white,
body: ChatWidget.widgetWelcomeScreen(context));
}
}