Parcourir la source

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

yangliuhua il y a 5 mois
Parent
commit
60a3be326a
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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;