MayLau-CbL / flutter_horizontal_data_table

Flutter Fixed Column Horizontal Datatable Widget
https://pub.dev/packages/horizontal_data_table
MIT License
252 stars 70 forks source link

[Bug]关于Flutter1.0不能使用高版本,低版本用不了的bug,RawScrollbar() #120

Open 211277729 opened 1 year ago

211277729 commented 1 year ago

Describe the bug 在使用table时出错了,版本是2.5.2,由于公司历史原因,项目一直在不支持空安全,难以升级,只好用最新的非空安全版

Platform Window

Screen Captures or Debug Log image

报错异常如下: /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'.

Additional context Add any other context about the problem here.

MayLau-CbL commented 1 year ago

看來已經不只是null safety 的問題, RawScrollbar 是2.x 開始support 的, 如果不能更新flutter 版本, 建議如果沒有要用到新function 就繼續使用舊版本, 如果要用新function 可以考慮folk 來maintain 當然最好還是看看能不能升flutter version 因為1.0 to 3.0 的performance 提升了不少

還有不知道能不能在1.x 用的 two_dimensional_scrollables 都可以看看