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