SfPdfViewerThemeData class

Holds the color and typography values for a SfPdfViewerTheme. Use this class to configure a SfPdfViewerTheme widget.

To obtain the current theme, use SfPdfViewerTheme.of.

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

Constructors

SfPdfViewerThemeData({Color? backgroundColor, Color? progressBarColor, PdfScrollStatusStyle? scrollStatusStyle, PdfScrollHeadStyle? scrollHeadStyle, PdfBookmarkViewStyle? bookmarkViewStyle, PdfPaginationDialogStyle? paginationDialogStyle, PdfHyperlinkDialogStyle? hyperlinkDialogStyle, PdfPasswordDialogStyle? passwordDialogStyle})
Create a SfPdfViewerThemeData given a set of exact values. All the values must be specified.
const
SfPdfViewerThemeData.raw({Color? backgroundColor, Color? progressBarColor, PdfScrollStatusStyle? scrollStatusStyle, PdfScrollHeadStyle? scrollHeadStyle, PdfBookmarkViewStyle? bookmarkViewStyle, PdfPaginationDialogStyle? paginationDialogStyle, PdfHyperlinkDialogStyle? hyperlinkDialogStyle, PdfPasswordDialogStyle? passwordDialogStyle})
Creating an argument constructor of SfPdfViewerThemeData class.
factory

Properties

backgroundColor → Color?
Specifies the background color of SfPdfViewer widget.
final
bookmarkViewStyle → PdfBookmarkViewStyle?
Specifies the bookmark view style of SfPdfViewer widget.
final
hashCode → int
The hash code for this object.
no setteroverride
hyperlinkDialogStyle → PdfHyperlinkDialogStyle?
Specifies the hyperlink dialog style of SfPdfViewer widget.
final
paginationDialogStyle → PdfPaginationDialogStyle?
Specifies the pagination dialog style of SfPdfViewer widget.
final
passwordDialogStyle → PdfPasswordDialogStyle?
Specifies the password dialog style of SfPdfViewer widget.
final
progressBarColor → Color?
Specifies the progress bar color of SfPdfViewer widget.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollHeadStyle → PdfScrollHeadStyle?
Specifies the scroll head style of SfPdfViewer widget.
final
scrollStatusStyle → PdfScrollStatusStyle?
Specifies the scroll status style of SfPdfViewer widget.
final

Methods

copyWith({Color? backgroundColor, Color? progressBarColor, PdfScrollStatusStyle? scrollStatusStyle, PdfScrollHeadStyle? scrollHeadStyle, PdfBookmarkViewStyle? bookmarkViewStyle, PdfPaginationDialogStyle? paginationDialogStyle, PdfHyperlinkDialogStyle? hyperlinkDialogStyle, PdfPasswordDialogStyle? passwordDialogStyle}) → SfPdfViewerThemeData
Creates a copy of this SfPdfViewer theme data object with the matching fields replaced with the non-null parameter values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

lerp(SfPdfViewerThemeData? a, SfPdfViewerThemeData? b, double t) → SfPdfViewerThemeData?
Linearly interpolate between two themes.