data_tables 0.0.2 data_tables: ^0.0.2 copied to clipboard
List View on Mobile and Data Tables on Tablets/Desktops.
data_tables #
- Full Screen Pagnitated Data Tables for Tablets/Desktops
- Mobile ListView with Action Buttons for Sorting and Selecting All
- Supports Dark Mode
Getting Started #
-
You can optionally build the listview for mobile with a builder, by default it creates a ExpansionTile with the remaining columns as children
-
The tablet breakpoint can also be set.
bool showMobileListView;
- When set to false it will always show a data tableint sortColumnIndex;
- Current Sorted Columnbool sortAscending;
- Sort OrderValueChanged<bool> onSelectAll;
- Called for Selecting and Deselecting AllValueChanged<int> onRowsPerPageChanged;
- Called when rows change on data table or last row reached on mobile.int rowsPerPage;
- Default Rows per pageWidget header;
- Widget header for Desktop and Tablet Data TableList<DataColumn> columns;
- List of Columns (Must match length of DataCells in DataSource)DataTableSource dataSource;
- DataSource for the Data TableIndexedWidgetBuilder mobileItemBuilder;
- Optional Item builder for the list view for Mobilenum tabletBreakpoint;
- Tablet breakpoint for the screen widthList<Widget> actions, selectedActions;
- Actions that show when items are selected or notint mobileFetchNextRows;
- Default number of rows to fetch nextRefreshCallback onRefresh;
- If not null the list view will be wrapped in a RefreshIndicator