scrollHeadStyle property

PdfScrollHeadStyle? scrollHeadStyle
final

Specifies the scroll head style of SfPdfViewer widget.

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SfTheme(
        data: SfThemeData(
          pdfViewerThemeData: SfPdfViewerThemeData(
            scrollHeadStyle: PdfScrollHeadStyle(
              backgroundColor: Colors.black,
              headerTextStyle: TextStyle(color: Colors.white)
            )
          )
        ),
     child: SfPdfViewer.asset(
          'assets/flutter-succinctly.pdf',
         ),
      ),
    )
  );
}

Implementation

final PdfScrollHeadStyle? scrollHeadStyle;