I want to insert icons and text into the chat bubble in Flutter, but using rows in the syntax actually makes the bubble wider.
I just want to make the text and icon in the right position, and also make the bubble shape follow the amount of text, not expand like that
this is my code and the result
Bubble(
margin: BubbleEdges.only(top: 10),
alignment: Alignment.topRight,
nip: BubbleNip.rightTop,
color: Color.fromRGBO(225, 255, 199, 1.0),
child: Column(
children: [
Row(
children: [
Text("Bang kuy, adu bola sama rt beside"),
Icon(Icons.done_all)
],
)
],
)
)
this is the result
New contributor
daffa rahman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.