【问题标题】:How to hide the the navigationbar that present in pdf viewer plugin flutter如何隐藏 pdf 查看器插件颤动中出现的导航栏
【发布时间】:2020-11-06 11:52:01
【问题描述】:

我需要隐藏在pdfviewer插件flutter中呈现默认值的导航栏。我曾经将showNavigation值的值更改为false,但它不起作用。我使用插件flutter_plugin_pdf_viewer:any 这是我的代码:

       Containe(  width:130,
               
                   height:130,
               
                 margin:EdgeInsets.all(20.0),
                 child:PDFViewer(document:doc2,
                showNavigation : false,/*here is my issue ,when i set like this it shows nothing in the UI*/ ),)

【问题讨论】:

    标签: flutter dart mobile


    【解决方案1】:

    这个插件解决了这个问题,请查看下面的链接

    https://github.com/lohanidamodar/pdf_viewer/pull/2

    使用这个插件

    advance_pdf_viewer: any
    

    【讨论】:

      【解决方案2】:

      我已经通过更改这个插件的源代码解决了这个问题。为了在 pdf 查看器插件中隐藏导航工具栏,请使用此插件仅查看 pdf 中的单个页面 :)

      https://github.com/SmilingDeveloper/newpdf_viewer.git

      【讨论】:

        猜你喜欢
        • 2019-02-21
        • 2014-08-07
        • 2017-02-20
        • 2016-10-08
        • 1970-01-01
        • 1970-01-01
        • 2020-08-31
        • 1970-01-01
        • 2022-12-12
        相关资源
        最近更新 更多