Selection handle and color rendering in PdfPageLayoutMode.single is erroneous

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. 


Screenshot_20220528-163313.jpg

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.

1 Reply

DR Deepika Ravi Syncfusion Team May 30, 2022 04:50 PM UTC

Hi Pyae Sone,


We tried to reproduce the reported issue with provided details, but the text selection is works properly in our side. For your reference, we have prepared a sample (along with the output screen record of the same) and it can be downloaded from the following link,

https://www.syncfusion.com/downloads/support/directtrac/general/ze/F~175311-873560077.zip

If you still reproduce the reported issue in your use case, then kindly share the modified issue reproducing in sample and share the following details, to reproduce the reported issue on our end.

1.syncfusion_flutter_pdfviewer package version.

2. Flutter SDK version.

3. Confirm us whether the issue is reproduced in another devices or only with Samsung tab A7 (SM-T505)


This information will be helpful for us to provide you a prompt solution at the earliest.


Regards,

Deepika Ravi


Loader.
Up arrow icon