ReliableCauliflower / flexible_scrollbar

A flexible solution for custom scroll bars
https://pub.dev/packages/flexible_scrollbar/example
Apache License 2.0
6 stars 7 forks source link

Error when scrollLineBuilder is used #2

Open apotec-danilo opened 2 years ago

apotec-danilo commented 2 years ago

scrollAxisDirection on line 178 comes has null if scrollLineBuilder is used

ReliableCauliflower commented 2 years ago

Please, provide a simple code example to reproduce the error and a more detailed explanation.

apotec-danilo commented 2 years ago

FlexibleScrollbar( controller: scrollController, scrollThumbBuilder: (ScrollbarInfo info) { return AnimatedContainer( margin: EdgeInsets.only(top: (info.thumbMainAxisSize - 10) / 2), width: 10, height: 10, decoration: BoxDecoration( borderRadius: BorderRadius.circular(5), color: Colors.black.withOpacity(info.isDragging ? 1 : 0.6), ), duration: const Duration(milliseconds: 300), ); }, scrollLineCrossAxisSize: 10, barPosition: BarPosition.end, scrollLineBuilder: (ScrollbarInfo info) { return Container(); }, child: ScrollConfiguration( behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false), child: SingleChildScrollView( controller: scrollController, child: Wrap(children: List.generate(100, (index) => Container(height: 40, width: 200, child: Text('aaaa'))) ))), )