Skip to content

Document the correct solution to avoid duplicate Scrollbar's on desktop #108159

@TahaTesser

Description

@TahaTesser

I just noticed behavior when testing #107765.

Steps to reproduce

  1. Copy the sample from https://master-api.flutter.dev/flutter/material/Scrollbar-class.html.
  2. Choose either of the Scrollbar and add a custom thickness: 20.0.

Screenshot 2022-07-22 at 11 27 51

One of the solutions suggested in #102775 (comment) is to add the following lines

ScrollConfiguration(
          behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false),
          child: ListView.builder(
              ...
              ...

I'm not entirely sure this is the exact solution to this issue. IMO, it should show a single scrollbar when I wrap ListView with the Scrollbar widget.

If using ScrollConfiguration to scrollbars: false is the correct way, this should be documented in https://master-api.flutter.dev/flutter/material/Scrollbar-class.html with an example.

cc: @Piinks

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: desktopRunning on desktopd: api docsIssues with https://api.flutter.dev/d: examplesSample code and demosf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions