Browse Source

ComPDFKit(flutter) - 配置文档更新

liuxiaolong 3 months ago
parent
commit
9617cdff9f
1 changed files with 10 additions and 2 deletions
  1. 10 2
      CONFIGURATION.md

+ 10 - 2
CONFIGURATION.md

@@ -49,7 +49,15 @@ var configuration = ComPDFKit.getDefaultConfig({
     ]
   }
 })
+
 ComPDFKit.openDocument(document, '', configuration)
+
+// Use in UI components
+<CPDFReaderView
+	document={samplePDF}
+	configuration={config}
+	style={{ flex: 1 }}
+/>
 ```
 
 **Flutter**
@@ -64,7 +72,7 @@ var configuration = CPDFConfiguration(
     ]
   )
 );
-ComPDFKit.openDocument(document, password: '', configuration: configuration); 
+ComPDFKit.openDocument(document, password: '', configuration: configuration);
 
 // usage Widget
 Scaffold(
@@ -130,7 +138,7 @@ Configure functions for the top toolbar in the PDF view.
 | iosLeftBarAvailableActions  | Array   | Functions available in the left side of the top toolbar for iOS platform.<br />Defaults: `back`, `thumbnail` |
 | iosRightBarAvailableActions | Array   | Functions available in the right side of the top toolbar for iOS platform.<br />Defaults: `search`, `bota`, `menu` |
 | availableMenus              | Array   | A list of more functions popped up by the `menu` option on the top toolbar. |
-| mainToolbarVisible          | boolean | 是否显示主界面视图顶部工具栏                                 |
+| mainToolbarVisible          | boolean | Whether to display the toolbar at the top of the main interface view.                                 |
 
 ##### **Constants**