chatbox 0.0.4
chatbox: ^0.0.4 copied to clipboard
Helps creating chatboxes for mobile applications. Provides simple UI design for chat applications. Developers can focus more on the chat functionality rather than creating unique UI.
example/lib/main.dart
import 'package:chatbox/chatbox.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return const SafeArea(
child: Scaffold(
body: ChatBox(
message: "Text message here",
recieved: false,
chatBoxColor: Colors.greenAccent,
textColor: Colors.black,
),
));
}
}