-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabmoney): Adicionado interação de tabcoins para post e comentários
- Loading branch information
Showing
4 changed files
with
136 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class Tabcoins extends StatefulWidget { | ||
final String tabcoins; | ||
final void Function() upvote; | ||
final void Function() downvote; | ||
|
||
const Tabcoins({ | ||
super.key, | ||
required this.tabcoins, | ||
required this.upvote, | ||
required this.downvote, | ||
}); | ||
|
||
@override | ||
State<Tabcoins> createState() => _TabcoinsState(); | ||
} | ||
|
||
class _TabcoinsState extends State<Tabcoins> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
children: [ | ||
IconButton( | ||
onPressed: widget.upvote, | ||
icon: const Icon(Icons.expand_less), | ||
), | ||
Text(widget.tabcoins), | ||
IconButton( | ||
onPressed: widget.downvote, | ||
icon: const Icon(Icons.expand_more), | ||
), | ||
], | ||
); | ||
} | ||
} |