@@ -24,8 +24,7 @@ class TimelineOnePage extends StatelessWidget {
24
24
children: < Widget > [
25
25
Text (
26
26
post.personName,
27
- style: Theme
28
- .of (context)
27
+ style: Theme .of (context)
29
28
.textTheme
30
29
.body1
31
30
.apply (fontWeightDelta: 700 ),
@@ -45,24 +44,27 @@ class TimelineOnePage extends StatelessWidget {
45
44
);
46
45
47
46
//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
+ ),
66
68
);
67
69
68
70
//post cards
0 commit comments