Browse Source

ComPDFKit(flutter) - changelog更新, 修复部分bug

liuxiaolong 9 months ago
parent
commit
559a9be2e9

+ 14 - 0
CHANGELOG.md

@@ -1,4 +1,18 @@
+## 2.0.2
+* Added `CPDFReaderWidget` widget.
+```dart
+Scaffold(
+  resizeToAvoidBottomInset: false,
+  appBar: AppBar(),
+  body: CPDFReaderWidget(
+    document: documentPath,
+    configuration: CPDFConfiguration(),
+    onCreated: (controller) {},
+  ));
+```
+
 ## 2.0.1
+
 * Added the features support for ComPDFKit PDF SDK for iOS V2.0.1.
 * Added the features support for ComPDFKit PDF SDK for Android V2.0.1.
 * Fix the issue of continuous memory growth.

+ 3 - 3
example/ios/Runner.xcodeproj/project.pbxproj

@@ -495,7 +495,7 @@
 				FLUTTER_BUILD_NAME = 2.0.1;
 				FLUTTER_BUILD_NUMBER = 2.0.1;
 				INFOPLIST_FILE = Runner/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/Frameworks",
@@ -685,7 +685,7 @@
 				FLUTTER_BUILD_NAME = 2.0.1;
 				FLUTTER_BUILD_NUMBER = 2.0.1;
 				INFOPLIST_FILE = Runner/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/Frameworks",
@@ -714,7 +714,7 @@
 				FLUTTER_BUILD_NAME = 2.0.1;
 				FLUTTER_BUILD_NUMBER = 2.0.1;
 				INFOPLIST_FILE = Runner/Info.plist;
-				IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
 				LD_RUNPATH_SEARCH_PATHS = (
 					"$(inherited)",
 					"@executable_path/Frameworks",

+ 0 - 1
example/lib/cpdf_reader_widget_dark_theme_example.dart

@@ -21,7 +21,6 @@ import 'package:compdfkit_flutter/cpdf_options.dart';
 import 'package:compdfkit_flutter/widgets/cpdf_reader_widget.dart';
 import 'package:compdfkit_flutter_example/theme/themes.dart';
 import 'package:flutter/material.dart';
-import 'package:flutter/services.dart';
 
 class CPDFDarkThemeExample extends StatefulWidget {
   final String documentPath;

+ 7 - 7
example/lib/cpdf_reader_widget_example.dart

@@ -7,10 +7,8 @@
 ///
 
 import 'package:compdfkit_flutter/cpdf_configuration.dart';
-import 'package:compdfkit_flutter/cpdf_options.dart';
 import 'package:compdfkit_flutter/widgets/cpdf_reader_widget.dart';
 import 'package:compdfkit_flutter/widgets/cpdf_reader_widget_controller.dart';
-import 'package:flutter/cupertino.dart';
 import 'package:flutter/material.dart';
 
 class CPDFReaderWidgetExample extends StatefulWidget {
@@ -32,11 +30,13 @@ class _CPDFReaderWidgetExampleState extends State<CPDFReaderWidgetExample> {
         resizeToAvoidBottomInset: false,
         appBar: AppBar(
           title: const Text('CPDFReaderWidget Example'),
-          leading: IconButton(onPressed: () async {
-            bool saveResult = await _controller.save();
-            print('ComPDFKit-Flutter: saveResult:$saveResult');
-            Navigator.pop(context);
-          }, icon: const Icon(Icons.arrow_back)),
+          leading: IconButton(
+              onPressed: () async {
+                bool saveResult = await _controller.save();
+                print('ComPDFKit-Flutter: saveResult:$saveResult');
+                Navigator.pop(context);
+              },
+              icon: const Icon(Icons.arrow_back)),
         ),
         body: CPDFReaderWidget(
           document: widget.documentPath,

File diff suppressed because it is too large
+ 0 - 2
example/lib/main.dart