diff --git a/lib/src/fab_menu_item.dart b/lib/src/fab_menu_item.dart index 8e889f2..3c0b521 100644 --- a/lib/src/fab_menu_item.dart +++ b/lib/src/fab_menu_item.dart @@ -203,21 +203,28 @@ class FabMenuMiniItemWidget extends StatelessWidget { } } - Widget _getChip() { +Widget _getChip() { return chipColor != null ? new Chip( backgroundColor: chipColor, - label: new Text( - text, - textAlign: TextAlign.center, - overflow: TextOverflow.ellipsis, - style: - new TextStyle(color: textColor, fontWeight: FontWeight.bold), + label: new InkWell( + onTap: () { + onPressed(); + hideWidget == null ? null : hideWidget(); + }, + child: new Text( + text, + textAlign: TextAlign.center, + overflow: TextOverflow.ellipsis, + style: new TextStyle( + color: textColor, fontWeight: FontWeight.bold), + ), ), ) : null; } + Widget _getFloatingActionButton() { return fabColor != null ? new FloatingActionButton(