Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/src/fab_menu_item.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
part of flutter_fab_dialer;

typedef void OnFabMiniMenuItemPressed();
typedef void OnFabMiniMenuItemPressed(int index);

typedef void HideWidget();

Expand Down Expand Up @@ -228,7 +228,7 @@ class FabMenuMiniItemWidget extends StatelessWidget {
child: icon,
heroTag: "$index",
onPressed: () {
onPressed();
onPressed(index);
hideWidget == null ? null : hideWidget();
})
: new FloatingActionButton(
Expand All @@ -249,7 +249,7 @@ class FabMenuMiniItemWidget extends StatelessWidget {
),
heroTag: "$index",
onPressed: () {
onPressed();
onPressed(index);
hideWidget == null ? null : hideWidget();
});
}
Expand Down