SfPdfViewerThemeData class Null safety

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({Brightness? brightness, Color? backgroundColor, Color? progressBarColor, PdfScrollStatusStyle? scrollStatusStyle, PdfScrollHeadStyle? scrollHeadStyle, PdfBookmarkViewStyle? bookmarkViewStyle, PdfPaginationDialogStyle? paginationDialogStyle, PdfHyperlinkDialogStyle? hyperlinkDialogStyle, PdfPasswordDialogStyle? passwordDialogStyle})
Creating an argument constructor of SfPdfViewerThemeData class.
factory
SfPdfViewerThemeData.raw({required Brightness? brightness, required Color? backgroundColor, required Color? progressBarColor, required PdfScrollStatusStyle? scrollStatusStyle, required PdfScrollHeadStyle? scrollHeadStyle, required PdfBookmarkViewStyle? bookmarkViewStyle, required PdfPaginationDialogStyle? paginationDialogStyle, required PdfHyperlinkDialogStyle? hyperlinkDialogStyle, required PdfPasswordDialogStyle? passwordDialogStyle})
Create a SfPdfViewerThemeData given a set of exact values. All the values must be specified.
const

Properties

backgroundColor Color?
Specifies the background color of SfPdfViewer widget.
final
bookmarkViewStyle PdfBookmarkViewStyle?
Specifies the bookmark view style of SfPdfViewer widget.
final
brightness Brightness?
The brightness of the overall theme of the application for SfPdfViewer widget.
final
hashCode int
The hash code for this object.
read-onlyoverride
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.
read-onlyinherited
scrollHeadStyle PdfScrollHeadStyle?
Specifies the scroll head style of SfPdfViewer widget.
final
scrollStatusStyle PdfScrollStatusStyle?
Specifies the scroll status style of SfPdfViewer widget.
final

Methods

copyWith({Brightness? brightness, 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 non-existent 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.