I have a RenderFlex overflowed by 72 pixels on the right issue
Caused by the first Text() widget, when users have really long texts. I even tried to use Textoverflow, but that didn't do anything either.
So I tried to wrap it with a Flexible as suggested here Flutter- wrapping text however it's not working. Any idea what I'm doing wrong?
Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
widget.p.description,
style: TextStyle(
fontWeight: FontWeight.w800,
),
overflow: TextOverflow.ellipsis,
),
SizedBox(height: 4.0),
Row(
children: [
Text(
timeago.format(widget.p.timestamp.toDate()),
style: TextStyle(),
),
SizedBox(width: 3.0),
StreamBuilder(
stream: lRef
.where('pId', isEqualTo: widget.p.pId)
.snapshots(),
builder:
(context, AsyncSnapshot<QuerySnapshot> snapshot) {
if (snapshot.hasData) {
QuerySnapshot snap = snapshot.data;
List<DocumentSnapshot> docs = snap.docs;
return buildCount(context, docs?.length ?? 0);
} else {
return buildCount1(context, 0);
}
},
),
],
),
],
),