ReadiumReaderWidget constructor
const
ReadiumReaderWidget({
- required Publication publication,
- Widget loadingWidget = const Center(child: CircularProgressIndicator()),
- Locator? initialLocator,
- ValueNotifier<
bool> ? shouldShowControls, - dynamic onExternalLinkActivated()?,
- ValueChanged<
TextSelectionEvent> ? onTextSelected, - ValueChanged<
SelectionActionEvent> ? onSelectionAction, - ValueChanged<
DecorationInteractionEvent> ? onDecorationInteraction, - List<
SelectionAction> selectionActions = const [], - Set<
DefaultSelectionAction> ? allowedDefaultActions, - String goBackwardSemanticLabel = 'Go Backward',
- String goForwardSemanticLabel = 'Go Forward',
- String toggleShowControlsSemanticLabel = 'Toggle show controls',
- bool verticalScroll = false,
- 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.selectionActions = const [],
this.allowedDefaultActions,
this.goBackwardSemanticLabel = 'Go Backward',
this.goForwardSemanticLabel = 'Go Forward',
this.toggleShowControlsSemanticLabel = 'Toggle show controls',
this.verticalScroll = false,
super.key,
});