Skip to content

Commit

Permalink
Feed Layout Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iampawan committed Oct 16, 2018
1 parent 73cf6bc commit dd5ff26
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions lib/ui/page/timeline/timeline_one_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class TimelineOnePage extends StatelessWidget {
children: <Widget>[
Text(
post.personName,
style: Theme
.of(context)
style: Theme.of(context)
.textTheme
.body1
.apply(fontWeightDelta: 700),
Expand All @@ -45,24 +44,27 @@ class TimelineOnePage extends StatelessWidget {
);

//column last
Widget actionColumn(Post post) => ButtonBar(
alignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
LabelIcon(
label: "${post.likesCount} Likes",
icon: FontAwesomeIcons.solidThumbsUp,
iconColor: Colors.green,
),
LabelIcon(
label: "${post.commentsCount} Comments",
icon: FontAwesomeIcons.comment,
iconColor: Colors.blue,
),
Text(
post.postTime,
style: TextStyle(fontFamily: UIData.ralewayFont),
)
],
Widget actionColumn(Post post) => FittedBox(
fit: BoxFit.contain,
child: ButtonBar(
alignment: MainAxisAlignment.center,
children: <Widget>[
LabelIcon(
label: "${post.likesCount} Likes",
icon: FontAwesomeIcons.solidThumbsUp,
iconColor: Colors.green,
),
LabelIcon(
label: "${post.commentsCount} Comments",
icon: FontAwesomeIcons.comment,
iconColor: Colors.blue,
),
Text(
post.postTime,
style: TextStyle(fontFamily: UIData.ralewayFont),
)
],
),
);

//post cards
Expand Down

0 comments on commit dd5ff26

Please sign in to comment.