TextBubble1 constructor
TextBubble1({
- bool isSender = true,
- required String text,
- String? time,
- bool tail = true,
- Color color = Colors.white70,
- bool sent = false,
- bool delivered = false,
- bool seen = false,
- TextStyle textStyle = const TextStyle(color: Colors.black87, fontSize: 16),
- TextStyle timeTextStyle = const TextStyle(color: Colors.black87, fontSize: 10),
- Widget? button,
Implementation
TextBubble1({
super.isSender,
required String text,
String? time,
super.tail,
super.color,
super.sent,
super.delivered,
super.seen,
TextStyle textStyle = const TextStyle(
color: Colors.black87,
fontSize: 16,
),
TextStyle timeTextStyle = const TextStyle(
color: Colors.black87,
fontSize: 10,
),
Widget? button,
}) : super(
widget: Row(children: [
Text(
text,
style: textStyle,
textAlign: TextAlign.left,
),
if (button != null) Spacer(),
if (button != null) button
]),
timeWidget: time != null
? Text(
time,
style: timeTextStyle,
textAlign: TextAlign.right,
)
: null,
);