[Bug]关于Flutter1.0不能使用高版本,低版本用不了的bug,RawScrollbar()
211277729 opened this issue · 1 comments
211277729 commented
Describe the bug
在使用table时出错了,版本是2.5.2,由于公司历史原因,项目一直在不支持空安全,难以升级,只好用最新的非空安全版
Platform
Window
报错异常如下:
/C:/FlutterSdk/flutter1.22.6/.pub-cache/hosted/pub.dartlang.org/horizontal_data_table-2.5.2/lib/scroll/custom_scroll_bar.dart:20:14: Error: The method 'RawScrollbar' isn't defined for the class 'CustomScrollBar'.
- 'CustomScrollBar' is from 'package:horizontal_data_table/scroll/custom_scroll_bar.dart' ('/C:/FlutterSdk/flutter1.22.6/.pub-cache/hosted/pub.dartlang.org/horizontal_data_table-2.5.2/lib/scroll/custom_scroll_bar.dart').
Try correcting the name to the name of an existing method, or defining a method named 'RawScrollbar'.
return RawScrollbar(
^^^^^^^^^^^^
Additional context
Add any other context about the problem here.
MayLau-CbL commented
看來已經不只是null safety 的問題, RawScrollbar 是2.x 開始support 的, 如果不能更新flutter 版本, 建議如果沒有要用到新function 就繼續使用舊版本, 如果要用新function 可以考慮folk 來maintain
當然最好還是看看能不能升flutter version 因為1.0 to 3.0 的performance 提升了不少
還有不知道能不能在1.x 用的 two_dimensional_scrollables 都可以看看