fluttercommunity / fluttercommunity/flutter-draggable-scrollbar

DraggableScrollbar for ListView Inside SingleChildScrollView

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
442
Forks
72
PR merge metrics
No merged PRs in 30d

Description

Using DraggableScrollBar for ListView (with width 1000) inside Horizontal SingleChildScrollBarView, the scrollbar appears only after scrolling horizontally to the end of list.

```
SingleChildScrollView(
scrollDirection: Axis.horizontal,
controller: _horizontalScrollController,
child: SizedBox(
width: BaseViewDataWidget.of(context).getWidth(),
child: DraggableScrollbar.semicircle(
controller: _listViewVerticalController,
child: ListView.builder(
itemCount: globals.recordCount,
itemExtent: 100,
controller: _listViewVerticalController,
itemBuilder: (context, index) {
return RecordWidget(index, offsetStream, _horizontalScrollController);
}),
),
),
)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.