data property

Specifies the color and typography values for descendant SfPdfViewer widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfPdfViewerTheme(
      data: SfPdfViewerThemeData(
        brightness: Brightness.dark
      ),
     child: SfPdfViewer.asset(
          'assets/flutter-succinctly.pdf',
       ),
    ),
  );
}

Implementation

final SfPdfViewerThemeData data;