diff --git a/lib/widgets/context_menu/twake_context_menu.dart b/lib/widgets/context_menu/twake_context_menu.dart index 60f7be2a43..7a7c612983 100644 --- a/lib/widgets/context_menu/twake_context_menu.dart +++ b/lib/widgets/context_menu/twake_context_menu.dart @@ -17,15 +17,15 @@ const double _kMinTileHeight = 24; /// If you just want to use a normal [TwakeContextMenu], please use [TwakeContextMenuArea]. class TwakeContextMenu extends StatefulWidget { + /// The [BuildContext] of the dialog/modal that will display the [TwakeContextMenu]. This is used to close the dialog/modal when the [TwakeContextMenu] is closed. final BuildContext dialogContext; + + /// The list of items to be displayed in the [TwakeContextMenu]. This is used to build the UI of items final List listActions; /// The [Offset] from coordinate origin the [TwakeContextMenu] will be displayed at. final Offset position; - /// The builder for the items to be displayed. [ListTile] is very useful in most cases. - // final ContextMenuBuilder builder; - /// The padding value at the top an bottom between the edge of the [TwakeContextMenu] and the first / last item final double? verticalPadding; diff --git a/lib/widgets/context_menu/twake_context_menu_area.dart b/lib/widgets/context_menu/twake_context_menu_area.dart index 44f86aef7f..dd8a3d32f3 100644 --- a/lib/widgets/context_menu/twake_context_menu_area.dart +++ b/lib/widgets/context_menu/twake_context_menu_area.dart @@ -14,6 +14,7 @@ typedef ContextMenuBuilder = List Function(BuildContext context); /// with the corresponding location [Offset]. class TwakeContextMenuArea extends StatelessWidget with TwakeContextMenuMixin { + /// The list of items to be displayed in the [TwakeContextMenu]. This is used to build the UI of items final List listActions; /// The widget displayed inside the [TwakeContextMenuArea]