brightness property
The brightness of the overall theme of the
application for SfPdfViewer
widget.
If brightness is not specified, then based on the
Theme.of(context).colorScheme.brightness, brightness for
SfPdfViewer
widgets will be applied.
Also refer Brightness.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
pdfViewerThemeData: SfPdfViewerThemeData(
brightness: Brightness.dark
)
),
child: SfPdfViewer.asset(
'assets/flutter-succinctly.pdf',
),
),
)
);
}
Implementation
final Brightness? brightness;