Skip to content

Can't hide scrollbar in Desktop #1532

@keyvanshajari

Description

@keyvanshajari

I want to use the "canShowScrollHead" property in Desktop, but it has an incorrect condition for the desktop that prevents me from hiding it.

---> SinglePageView.dart

Visibility(
            visible: widget.pdfViewerController.pageCount > 1 &&
                ((widget.canShowScrollHead && !kIsDesktop) || kIsDesktop),
            child: ScrollHead(
                true,
                false,
                Offset(_scrollHeadPosition, widget.viewportDimension.height),
                widget.pdfViewerController,
                false,
                PdfScrollDirection.horizontal,
                widget.isBookmarkViewOpen,
                PdfPageLayoutMode.single),
          ),
        ),
        Visibility(
            visible: isScrollHeadDragged && widget.canShowScrollStatus,
            child: ScrollStatus(widget.pdfViewerController))  

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close