![]() ![]() ![]() scrollPhysics and horizontalScrollPhysics are to set scroll physics of the data table.Detail you may reference to the Pull to Refresh/Load section. enablePullToLoadNewData is to define whether enable the pull-to-load function.enablePullToRefresh is to define whether enable the pull-to-refresh function.verticalScrollbarStyle and horizontalScrollbarStyle are a ScrollbarStyle class object which allows customizing isAlwaysShown, thumbColor, thickness and radius.Please aware that if you have enabled the pull to refresh function, the jump to action may conflict with the pull to refresh action. added horizontalScrollController and verticalScrollController allow maunally jump to certain offset position.Default is set to white following the Material widget. added leftHandSideColBackgroundColor and rightHandSideColBackgroundColor for setting the default background of the back of table.This should be useful when using dark table background. elevationColor is for changing shadow color.If want to disable the shadow, please set to 0.0. elevation is the shadow between the header row and the left column when scroll start.rowSeparatorWidget is to add Divider of each Row.itemCount is required to count the number of row. (Recommended) Using index builder to assign each row's widget. Directly add list of child widget (leftSideChildren and rightSideChildren)ī. This widget allow set children in two ways,Ī.isFixedHeader is to define whether use fixed top row header.Default is set to null, which is equal to using available height. The table widget height is using the smaller value of tableHeight and available height. tableHeight is for manually set the table widget's height.Left side column(leftHandSideColumnWidth) and right side maximum scrollable area width(rightHandSideColumnWidth) are required to input.This.htdRefreshController: _hdtRefreshController, This.refreshIndicator: const WaterDropHeader(), This.rightHandSideColBackgroundColor = Colors.white, This.leftHandSideColBackgroundColor = Colors.white, This shows Widget's full customizations: HorizontalDataTable( The following is the guide for installation with different dart sdk and flutter version. Although the package is migrated manually and tested with each functions, please feel free to file issue on GitHub if there is any problem on the integration/migration. This package is starting to support sound null-safety. A Flutter Widget that create a horizontal table with fixed column on left hand side.
0 Comments
Leave a Reply. |