AyahMenuStyle.defaults constructor

AyahMenuStyle.defaults({
  1. required bool isDark,
  2. required BuildContext context,
})

القيم الافتراضية للنمط بحسب الوضع الليلي/النهاري.

Implementation

factory AyahMenuStyle.defaults({
  required bool isDark,
  required BuildContext context,
}) {
  final scheme = Theme.of(context).colorScheme;
  final primary = scheme.primary;
  return AyahMenuStyle(
    backgroundColor: AppColors.getBackgroundColor(isDark),
    borderColor: primary.withValues(alpha: 0.1),
    borderWidth: 2.0,
    borderRadius: 6.0,
    outerBorderRadius: 8.0,
    bookmarkColorCodes: const [
      0xAAFFD354, // أصفر باهت
      0xAAF36077, // وردي داكن
      0xAA00CD00, // أخضر
    ],
    copyIconColor: primary,
    tafsirIconColor: primary,
    dividerColor: primary.withValues(alpha: 0.1),
    boxShadow: [
      BoxShadow(
        color: Colors.grey.withValues(alpha: 0.3),
        blurRadius: 10,
        spreadRadius: 5,
        offset: const Offset(0, 5),
      ),
    ],
    padding: const EdgeInsets.symmetric(horizontal: 6.0, vertical: 2.0),
    margin: const EdgeInsets.all(4.0),
    dialogHeight: 80.0,
    iconSize: 24.0,
    iconHorizontalPadding: 8.0,
    itemBaseWidth: 40.0,
    itemSpacing: 16.0,
    extraHorizontalSpace: 40.0,
    dividerHeight: 30.0,
    dividerThickness: 1.0,
    showBookmarkButtons: true,
    showCopyButton: true,
    showTafsirButton: true,
    bookmarkIconData: Icons.bookmark,
    copyIconData: Icons.copy_rounded,
    tafsirIconData: Icons.text_snippet_rounded,
    tapOffsetSpacing: 10.0,
    edgeSafeMargin: 10.0,
    copySuccessMessage: 'تم النسخ الى الحافظة',
    customMenuItems: null,
    showPlayAllButton: true,
    showPlayButton: true,
    playIconData: Icons.play_arrow,
    playAllIconData: Icons.playlist_play,
    playIconColor: primary,
    playAllIconColor: primary,
  );
}