Ver código fonte

ComPDFKit(flutter) - 新增configuration文档,优化README文档

liuxiaolong 9 meses atrás
pai
commit
e4b5ddf064
6 arquivos alterados com 1046 adições e 6 exclusões
  1. 1039 0
      CONFIGURATION.md
  2. 3 3
      README.md
  3. 1 1
      example/ios/Podfile
  4. 1 1
      example/pubspec.lock
  5. 1 0
      lib/cpdf_configuration.dart
  6. 1 1
      pubspec.yaml

Diferenças do arquivo suprimidas por serem muito extensas
+ 1039 - 0
CONFIGURATION.md


+ 3 - 3
README.md

@@ -59,7 +59,7 @@ Please install the following required packages:
 
 Operating Environment Requirements:
 
-* The iOS 10.0 or higher.
+* The iOS 11.0 or higher.
 * The Xcode 12.0 or newer for Objective-C or Swift.
 
 ### Integrate into a New Flutter APP
@@ -571,7 +571,7 @@ end
 
 ## UI Customization
 
-In version **1.12.0**, we have expanded the options that can be defined in the [CPDFConfiguration](./lib/cpdf_configuration.dart) class. When using the `ComPDFKit.openDocument` method to open a PDF View, you can define this object to meet your product requirements. We will continue to enrich configuration options in the future to further enhance the flexibility of the product. Here are some examples of commonly used configuration options:
+In the **1.12.0** version, we have expanded the options that can be defined in the [CPDFConfiguration](./lib/cpdf_configuration.dart) class. When using the `ComPDFKit.openDocument` method to open a PDF View or use `CPDFReaderWidget`, you can define this object to meet your product needs. We will continue to enrich the configuration options in the future to further enhance the flexibility of the product. The following are some examples of commonly used configuration options:
 
 1. Set the initial display mode and the list of available modes. The following code shows enabling only the viewer mode and annotations mode:
 
@@ -611,7 +611,7 @@ var configuration = CPDFConfiguration(
 ComPDFKit.openDocument(documentPath, password: '', configuration: configuration);
 ```
 
-> Note: For more information, please refer to the options defined in the [CPDFConfiguration](./lib/cpdf_configuration.dart) class
+> Note: For more information, please refer to the options defined in the [CONFIGURATION.md](./CONFIGURATION.md) class
 
 ## Example APP
 

+ 1 - 1
example/ios/Podfile

@@ -1,5 +1,5 @@
 # Uncomment this line to define a global platform for your project
-# platform :ios, '12.0'
+platform :ios, '12.0'
 
 # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
 ENV['COCOAPODS_DISABLE_STATS'] = 'true'

+ 1 - 1
example/pubspec.lock

@@ -55,7 +55,7 @@ packages:
       path: ".."
       relative: true
     source: path
-    version: "2.0.2-dev.1"
+    version: "2.0.2"
   cross_file:
     dependency: transitive
     description:

+ 1 - 0
lib/cpdf_configuration.dart

@@ -862,6 +862,7 @@ class CPDFFormAttr {
 }
 
 class CPDFGlobalConfig {
+
   /// Only supports Android platform in version 2.0.2
   //  Set the view theme mode except the PDF area, the default value is [CPDFThemeMode.system]
   final CPDFThemeMode themeMode;

+ 1 - 1
pubspec.yaml

@@ -1,6 +1,6 @@
 name: compdfkit_flutter
 description: ComPDFKit for Flutter is a comprehensive SDK that allows you to quickly add PDF functionality to Android and iOS Flutter applications.
-version: 2.0.2-dev.1
+version: 2.0.2
 homepage: https://www.compdf.com
 repository: https://github.com/ComPDFKit/compdfkit-pdf-sdk-flutter
 issue_tracker: https://www.compdf.com/support