|
@@ -42,14 +42,13 @@ class _CPDFDarkThemeExampleState extends State<CPDFDarkThemeExample> {
|
|
|
title: const Text('Dark Theme Example'),
|
|
|
),
|
|
|
body: CPDFReaderWidget(
|
|
|
- document: widget.documentPath,
|
|
|
- configuration: CPDFConfiguration(
|
|
|
- readerViewConfig:
|
|
|
- const ReaderViewConfig(themes: CPDFThemes.dark),
|
|
|
- globalConfig: const CPDFGlobalConfig(
|
|
|
- themeMode: CPDFThemeMode.dark)),
|
|
|
- onCreated: (controller) {
|
|
|
-
|
|
|
- },)));
|
|
|
+ document: widget.documentPath,
|
|
|
+ configuration: CPDFConfiguration(
|
|
|
+ toolbarConfig: const ToolbarConfig(
|
|
|
+ iosLeftBarAvailableActions: [ToolbarAction.thumbnail]),
|
|
|
+ globalConfig: CPDFGlobalConfig(themeMode: CPDFThemeMode.dark)
|
|
|
+ ),
|
|
|
+ onCreated: (controller) {},
|
|
|
+ )));
|
|
|
}
|
|
|
}
|