canShowTextSelectionMenu property
Indicates whether the text selection menu can be displayed after the text is selected.
If this property is set to false, the text selection menu in the SfPdfViewer will not be displayed after selecting the text.
Defaults to true.
class MyAppState extends State<MyApp> {
final GlobalKey<SfPdfViewerState> _pdfViewerKey = GlobalKey();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Syncfusion Flutter PDF Viewer'),
),
body: SfPdfViewer.network(
'https://cdn.syncfusion.com/content/PDFViewer/flutter-succinctly.pdf',
key: _pdfViewerKey,
canShowTextSelectionMenu: false,
),
);
}
}
Implementation
final bool canShowTextSelectionMenu;