ReadiumReaderWidget constructor

const ReadiumReaderWidget({
  1. required Publication publication,
  2. Widget loadingWidget = const Center(child: CircularProgressIndicator()),
  3. Locator? initialLocator,
  4. ValueNotifier<bool>? shouldShowControls,
  5. dynamic onExternalLinkActivated(
    1. String
    )?,
  6. ValueChanged<TextSelectionEvent>? onTextSelected,
  7. ValueChanged<SelectionActionEvent>? onSelectionAction,
  8. ValueChanged<DecorationInteractionEvent>? onDecorationInteraction,
  9. ValueChanged<ImageTapEvent>? onImageTapped,
  10. List<SelectionAction> selectionActions = const [],
  11. Set<DefaultSelectionAction>? allowedDefaultActions,
  12. String goBackwardSemanticLabel = 'Go Backward',
  13. String goForwardSemanticLabel = 'Go Forward',
  14. String toggleShowControlsSemanticLabel = 'Toggle show controls',
  15. bool verticalScroll = false,
  16. Key? key,
})

Implementation

const ReadiumReaderWidget({
  required this.publication,
  this.loadingWidget = const Center(child: CircularProgressIndicator()),
  this.initialLocator,
  this.shouldShowControls,
  this.onExternalLinkActivated,
  this.onTextSelected,
  this.onSelectionAction,
  this.onDecorationInteraction,
  this.onImageTapped,
  this.selectionActions = const [],
  this.allowedDefaultActions,
  this.goBackwardSemanticLabel = 'Go Backward',
  this.goForwardSemanticLabel = 'Go Forward',
  this.toggleShowControlsSemanticLabel = 'Toggle show controls',
  this.verticalScroll = false,
  super.key,
});