Skip to content

Commit dd5ff26

Browse files
committed
Feed Layout Fixed
1 parent 73cf6bc commit dd5ff26

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

lib/ui/page/timeline/timeline_one_page.dart

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class TimelineOnePage extends StatelessWidget {
2424
children: <Widget>[
2525
Text(
2626
post.personName,
27-
style: Theme
28-
.of(context)
27+
style: Theme.of(context)
2928
.textTheme
3029
.body1
3130
.apply(fontWeightDelta: 700),
@@ -45,24 +44,27 @@ class TimelineOnePage extends StatelessWidget {
4544
);
4645

4746
//column last
48-
Widget actionColumn(Post post) => ButtonBar(
49-
alignment: MainAxisAlignment.spaceBetween,
50-
children: <Widget>[
51-
LabelIcon(
52-
label: "${post.likesCount} Likes",
53-
icon: FontAwesomeIcons.solidThumbsUp,
54-
iconColor: Colors.green,
55-
),
56-
LabelIcon(
57-
label: "${post.commentsCount} Comments",
58-
icon: FontAwesomeIcons.comment,
59-
iconColor: Colors.blue,
60-
),
61-
Text(
62-
post.postTime,
63-
style: TextStyle(fontFamily: UIData.ralewayFont),
64-
)
65-
],
47+
Widget actionColumn(Post post) => FittedBox(
48+
fit: BoxFit.contain,
49+
child: ButtonBar(
50+
alignment: MainAxisAlignment.center,
51+
children: <Widget>[
52+
LabelIcon(
53+
label: "${post.likesCount} Likes",
54+
icon: FontAwesomeIcons.solidThumbsUp,
55+
iconColor: Colors.green,
56+
),
57+
LabelIcon(
58+
label: "${post.commentsCount} Comments",
59+
icon: FontAwesomeIcons.comment,
60+
iconColor: Colors.blue,
61+
),
62+
Text(
63+
post.postTime,
64+
style: TextStyle(fontFamily: UIData.ralewayFont),
65+
)
66+
],
67+
),
6668
);
6769

6870
//post cards

0 commit comments

Comments
 (0)