Skip to content

Commit

Permalink
Upvote downvote button corrected.
Browse files Browse the repository at this point in the history
  • Loading branch information
nisiddharth committed Nov 1, 2020
1 parent 76f5c52 commit 8ad2f8e
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions lib/live_stream/live_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,19 @@ class _LiveListState extends State<LiveList> {
fit: BoxFit.fill),
),
),
Text(
'${documentSnapshot['title']}\nupvotes: ${documentSnapshot['upvotes']} downvotes: ${documentSnapshot['downvotes']}',
style: TextStyle(fontSize: 20),
)
Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Text(
'${documentSnapshot['title']}',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold),
),
Text(
'upvotes: ${documentSnapshot['upvotes']} downvotes: ${documentSnapshot['downvotes']}')
])
],
),
),
Expand Down Expand Up @@ -128,7 +137,7 @@ class _LiveListState extends State<LiveList> {
),
FlatButton(
child: Text(
"Reject",
"Downvote",
style: TextStyle(
color: Theme.of(context).errorColor),
),
Expand Down Expand Up @@ -164,7 +173,7 @@ class _LiveListState extends State<LiveList> {
actions: <Widget>[
FlatButton(
child: Text(
"Upvote",
"Cancel",
style: TextStyle(
color: Theme.of(context).buttonColor),
),
Expand All @@ -174,7 +183,7 @@ class _LiveListState extends State<LiveList> {
),
FlatButton(
child: Text(
"Accept",
"Upvote",
style: TextStyle(color: Colors.green),
),
onPressed: () async {
Expand Down

0 comments on commit 8ad2f8e

Please sign in to comment.