Skip to content

Commit

Permalink
#16: bugfix: sort items dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimibe committed Mar 28, 2020
1 parent 9de69bd commit df4a9f6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/grouped_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ class _GroupedLisdtViewState<T, E> extends State<GroupedListView<T, E>> {
GlobalKey _key = GlobalKey();
int _topElementIndex = 0;

@override
initState() {
super.initState();
this._sortedElements = _sortElements();
}

@override
void dispose() {
_controller.removeListener(_scrollListener);
Expand All @@ -71,6 +65,7 @@ class _GroupedLisdtViewState<T, E> extends State<GroupedListView<T, E>> {

@override
Widget build(BuildContext context) {
this._sortedElements = _sortElements();
return Column(
key: _key,
children: <Widget>[
Expand Down

0 comments on commit df4a9f6

Please sign in to comment.