child property
Specifies a widget that can hold single child.
Widget build(BuildContext context) {
return Scaffold(
body: SfPdfViewerTheme(
data: SfPdfViewerThemeData(
brightness: Brightness.dark
),
child: SfPdfViewer.asset(
'assets/flutter-succinctly.pdf',
),
),
);
}
Implementation
@override
final Widget child;