When running the SfPdfViewer on my Samsung Galaxy Tab A7 (SM-T505), I found that selecting text with PdfPageLayoutMode.single renders the handle and selection in the wrong place.
You can reproduce the bug using the code below:
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
void main() => runApp(MaterialApp(
title: 'Syncfusion PDF Viewer Demo',
theme: ThemeData(
textSelectionTheme: const TextSelectionThemeData(
selectionColor: Colors.red, selectionHandleColor: Colors.blue),
),
home: const HomePage(),
));
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@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',
pageLayoutMode: PdfPageLayoutMode.single,
),
);
}
}
Is this a bug or did I do something wrong?
Thanks in advance.