Comment / Reply Overflow by 1 pixel
withcenterdev5 opened this issue · comments
Replies section throws an overflow error when the elapsed time turned into about an hour ago
Exception Details
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 1.00 pixels on the right.
The relevant error-causing widget was:
Row
Row:file:///Users/ace/Desktop/trainee/FIREFLUTTER_FILES/fireflutter/lib/src/widget/comment/comment.one_line.list_tile.dart:60:17
~/lib/forums/feed.dart
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const TitleText(text: 'Forum'),
leading: const LeadingButton(),
actions: const [
AppBarAction(),
],
backgroundColor: Theme.of(context).canvasColor,
elevation: 0,
),
body: const FeedBody(),
bottomNavigationBar: const BottomNavBar(index: 0),
);
}
}
class FeedBody extends StatelessWidget {
const FeedBody({
super.key,
});
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraints) => Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const SizedBox(),
// notifications, add post / image buttons here
SizedBox(
height: constraints.maxHeight,
child: PostListView(
itemBuilder: (context, post) => PostDoc(
post: post,
builder: (post) {
return Theme(
data: ThemeData(
elevatedButtonTheme: ElevatedButtonThemeData(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.transparent,
foregroundColor: Colors.blue,
elevation: 0,
textStyle: Theme.of(context).textTheme.bodySmall!.copyWith(
fontWeight: FontWeight.bold,
),
),
),
),
child: PostCard(
post: post,
),
);
},
),
),
),
],
),
);
}
}