Skip to content

Commit df1738c

Browse files
author
Christian Muehle
committed
publish 0.0.3
1 parent 92f5e7e commit df1738c

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
* Server side data table with paging support
44
* Allowing the same changes as the build in PaginatedDataTable
5+
6+
## [0.0.3] - 04/31/2021
7+
8+
* Auto reload page in case column sorting is changed

lib/datatable.dart

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -88,25 +88,14 @@ class AdvancedPaginatedDataTable extends StatefulWidget {
8888
this.addEmptyRows = true,
8989
this.loadingWidget,
9090
this.errorWidget,
91-
}) : assert(actions == null || (actions != null && header != null)),
92-
assert(columns != null),
93-
assert(dragStartBehavior != null),
91+
}) : assert(actions == null || header != null),
9492
assert(columns.isNotEmpty),
9593
assert(sortColumnIndex == null ||
9694
(sortColumnIndex >= 0 && sortColumnIndex < columns.length)),
97-
assert(sortAscending != null),
98-
assert(dataRowHeight != null),
99-
assert(headingRowHeight != null),
100-
assert(horizontalMargin != null),
101-
assert(columnSpacing != null),
102-
assert(showCheckboxColumn != null),
103-
assert(showFirstLastButtons != null),
104-
assert(rowsPerPage != null),
10595
assert(rowsPerPage > 0),
10696
assert(() {
10797
if (onRowsPerPageChanged != null) {
108-
assert(availableRowsPerPage != null &&
109-
availableRowsPerPage.contains(rowsPerPage));
98+
assert(availableRowsPerPage.contains(rowsPerPage));
11099
}
111100
return true;
112101
}()),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: advanced_datatable
22
description: An addtion to the Flutter PaginatedDataTable allowing pagination
33
also for the datasource aka server side datatables
4-
version: 0.0.2
4+
version: 0.0.3
55
homepage: https://devowl.de
66

77
environment:

0 commit comments

Comments
 (0)