flutter-candlesticks
flutter-candlesticks copied to clipboard
获取数据问题
我打开你的案例demo直接报错The getter 'length' was called on null. 点进去是这个地方 Scrollbar( child: SingleChildScrollView( child: Container( width: bloc.rectWidth * data.length,(这里的length为null) ), controller: _controller, scrollDirection: Axis.horizontal, ))
Scrollbar( child: SingleChildScrollView( child: Container( width: bloc.rectWidth * (data?.length ?? 0),(这里做一下这样的处理,就没有报错了) ), controller: _controller, scrollDirection: Axis.horizontal, ))