flutter-draggable-scrollbar icon indicating copy to clipboard operation
flutter-draggable-scrollbar copied to clipboard

DraggableScrollbar for ListView Inside SingleChildScrollView

Open SivaramSS opened this issue 3 years ago • 0 comments

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);
                  }),
            ),
          ),
        )

SivaramSS avatar Mar 21 '21 03:03 SivaramSS