passwordDialogStyle property

PdfPasswordDialogStyle? passwordDialogStyle
final

Specifies the password dialog style of SfPdfViewer widget.

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SfTheme(
        data: SfThemeData(
          pdfViewerThemeData: SfPdfViewerThemeData(
            passwordDialogStyle: PdfPasswordDialogStyle(
              backgroundColor: Colors.black,
              headerTextStyle: TextStyle(color: Colors.white),
              contentTextStyle: TextStyle(color: Colors.grey),
              inputFieldTextStyle: TextStyle(color: Colors.white),
              hintTextStyle: TextStyle(color: Colors.grey),
              labelTextStyle: TextStyle(color: Colors.grey),
              validationTextStyle: TextStyle(color: Colors.red),
              openTextStyle: TextStyle(color: Colors.white),
              cancelTextStyle: TextStyle(color: Colors.white),
              closeIconColor: Colors.black,
              visibleIconColor: Colors.pink,
            )
          )
        ),
     child: SfPdfViewer.asset(
          'assets/flutter-succinctly.pdf',
         ),
      ),
    )
  );
}

Implementation

final PdfPasswordDialogStyle? passwordDialogStyle;