Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! TW-1787: Update context menu for p…
Browse files Browse the repository at this point in the history
…inned screen
  • Loading branch information
hieutbui committed Jun 6, 2024
1 parent cc55504 commit c569cf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/widgets/context_menu/twake_context_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<ContextMenuAction> 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;

Expand Down
1 change: 1 addition & 0 deletions lib/widgets/context_menu/twake_context_menu_area.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ typedef ContextMenuBuilder = List<Widget> 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<ContextMenuAction> listActions;

/// The widget displayed inside the [TwakeContextMenuArea]
Expand Down

0 comments on commit c569cf3

Please sign in to comment.