add toast '举报成功'

hmxc
张萌 4 years ago
parent 9204368d0d
commit 8ea4aaae04

@ -300,7 +300,15 @@ class _TrendCardState extends State<TrendCard> {
Positioned( Positioned(
top: 0, top: 0,
right: 0, right: 0,
child: PopupMenuButton( child: PopupMenuButton<int>(
onSelected: (value) {
switch (value) {
case 0:
BotToast.showText(text: '举报成功');
break;
default:
}
},
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
icon: Icon( icon: Icon(
CupertinoIcons.chevron_down, CupertinoIcons.chevron_down,
@ -309,6 +317,7 @@ class _TrendCardState extends State<TrendCard> {
itemBuilder: (context) { itemBuilder: (context) {
return [ return [
PopupMenuItem( PopupMenuItem(
value: 0,
child: Container( child: Container(
width: 150.w, width: 150.w,
height: 50.w, height: 50.w,

Loading…
Cancel
Save