We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我打开你的案例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, ))
The text was updated successfully, but these errors were encountered:
Scrollbar( child: SingleChildScrollView( child: Container( width: bloc.rectWidth * (data?.length ?? 0),(这里做一下这样的处理,就没有报错了) ), controller: _controller, scrollDirection: Axis.horizontal, ))
Sorry, something went wrong.
No branches or pull requests
我打开你的案例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,
))
The text was updated successfully, but these errors were encountered: