AyahLongClickDialog constructor

const AyahLongClickDialog({
  1. required BuildContext context,
  2. Key? key,
  3. AyahModel? ayah,
  4. required Offset position,
  5. required int index,
  6. required int pageIndex,
  7. Widget? anotherMenuChild,
  8. void anotherMenuChildOnTap(
    1. AyahModel ayah
    )?,
  9. required bool isDark,
  10. Widget? secondMenuChild,
  11. void secondMenuChildOnTap(
    1. AyahModel ayah
    )?,
})

Creates a dialog displayed on long click of an Ayah to provide options like bookmarking and copying text.

This widget shows a dialog at a specified position with options to bookmark the Ayah in different colors or copy the Ayah text to the clipboard. The appearance and behavior are influenced by the state of QuranCtrl.

Implementation

const AyahLongClickDialog({
  required this.context,
  super.key,
  this.ayah,
  // this.ayahFonts,
  required this.position,
  required this.index,
  required this.pageIndex,
  this.anotherMenuChild,
  this.anotherMenuChildOnTap,
  required this.isDark,
  this.secondMenuChild,
  this.secondMenuChildOnTap,
});