Closed MRYIN123 closed 4 weeks ago
1.0.54 introduces `PdfViewerParams.perPageSelectionAreaInjector to customize text selection behavior:
perPageSelectionAreaInjector: (page, child) {
return SelectionArea(
contextMenuBuilder: (context, selectableRegionState) {
return AdaptiveTextSelectionToolbar.selectableRegion(
selectableRegionState: selectableRegionState,
);
},
child: child,
);
},
Thanks!
You can inject any widget other than SelectionArea so that do some special trick.
But I understand that it is just the first step and could not customize everything (I don't know what should be customizable) so far.
At least, currently we can not do "selecting picture". It's very difficult to implement. I have no idea for that.
Is there a selectArea for selecting text on macos? Can you open the callback after selecting the text, so that you can customize the pop-up box when selecting the text. Are there any callbacks for table/picture clicks?