contextMenuTheme method

  1. @override
ShadContextMenuTheme contextMenuTheme()
override

Implementation

@override
ShadContextMenuTheme contextMenuTheme() => ShadContextMenuTheme(
  constraints: const BoxConstraints(minWidth: 128),
  padding: const EdgeInsets.symmetric(vertical: 4),
  itemPadding: const EdgeInsets.symmetric(horizontal: 4),
  leadingPadding: const EdgeInsetsDirectional.only(end: 8),
  trailingPadding: const EdgeInsetsDirectional.only(start: 8),
  showDelay: const Duration(milliseconds: 100),
  height: 32,
  buttonVariant: ShadButtonVariant.ghost,
  itemDecoration: const ShadDecoration(
    secondaryBorder: ShadBorder.none,
    secondaryFocusedBorder: ShadBorder.none,
  ),
  textStyle: effectiveTextTheme.small.copyWith(fontWeight: FontWeight.normal),
  trailingTextStyle: effectiveTextTheme.muted.copyWith(
    fontSize: 12,
    height: 1,
  ),
  selectedBackgroundColor: colorScheme.accent,
);