Ver código fonte

CPDFView(Flutter) - reader widget 组件back 控件删除

yangliuhua 5 meses atrás
pai
commit
60a3be326a
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      example/lib/cpdf_reader_widget_example.dart

+ 2 - 1
example/lib/cpdf_reader_widget_example.dart

@@ -7,6 +7,7 @@
 ///
 
 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/material.dart';
@@ -40,7 +41,7 @@ class _CPDFReaderWidgetExampleState extends State<CPDFReaderWidgetExample> {
         ),
         body: CPDFReaderWidget(
           document: widget.documentPath,
-          configuration: CPDFConfiguration(),
+          configuration: CPDFConfiguration(toolbarConfig: ToolbarConfig(iosLeftBarAvailableActions: [ToolbarAction.thumbnail]),),
           onCreated: (controller) {
             setState(() {
               _controller = controller;