Skyost / FlutterWeekView

Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !
https://pub.dev/packages/flutter_week_view
MIT License
208 stars 89 forks source link

Improving performance by turning a SingleChildScrollView into a ListView #7

Closed Skyost closed 4 years ago

Skyost commented 4 years ago

Is your feature request related to a problem? Please describe. The current WeekView horizontal scrolling may be too expensive if there are too many dates because of the current system.

Currently the horizontal scrolling is managed by a SingleChildScrollView (see here) and DayViews with DayBars are in a Row (this allow to have an horizontal + vertical fixed header).

Describe the solution you'd like Replacing the SingleChildScrollView by a ListView (whom out-of-viewport elements are not considered).

This can be done by swapping the role of vertical and horizontal scrolling.

Describe alternatives you've considered Using a third party plugin, like horizontal_data_table or table_sticky_headers. But none really fits the needs of the plugin.

Additional context None. Help is appreciated.