backgroundColor property

Color? backgroundColor
final

Specifies the background color of SfPdfViewer widget.

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

Implementation

final Color? backgroundColor;