chattext function
Implementation
Widget chattext(String text) {
return Padding(
padding: const EdgeInsets.fromLTRB(100, 5, 10, 5),
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
ElevatedButton(
style: ButtonStyle(
backgroundColor:
WidgetStateProperty.all<Color>(Colors.blue.shade700),
shape: WidgetStateProperty.all<RoundedRectangleBorder>(
const RoundedRectangleBorder(
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(30),
bottomRight: Radius.circular(30),
topLeft: Radius.circular(30),
topRight: Radius.zero),
side: BorderSide(color: Colors.white)))),
child: Text(text, style: const TextStyle(color: Colors.white)),
onPressed: () {},
),
],
),
);
}