-
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.
Merge pull request #40 from avuenja/31-adicionar-interação-com-tabcash
31 adicionar interação com tabcash
- Loading branch information
Showing
7 changed files
with
201 additions
and
16 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
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), | ||
), | ||
], | ||
); | ||
} | ||
} |