Skip to content

Commit

Permalink
Merge pull request #141 from kvii2202/master
Browse files Browse the repository at this point in the history
typo: changeing -> changing
  • Loading branch information
yangyxd authored Apr 25, 2021
2 parents b118341 + e6f28f4 commit cf57b14
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ class PickerWidgetState<T> extends State<_PickerWidget> {
return items;
}

bool _changeing = false;
bool _changing = false;
bool _wait = true;
final Map<int, int> lastData = {};

Expand Down Expand Up @@ -622,23 +622,23 @@ class PickerWidgetState<T> extends State<_PickerWidget> {
}

void updateScrollController(int i) {
if (_changeing || !(picker.adapter.isLinkage)) return;
_changeing = true;
if (_changing || !(picker.adapter.isLinkage)) return;
_changing = true;
for (int j = 0; j < picker.selecteds.length; j++) {
if (j != i) {
if (scrollController[j].hasClients &&
scrollController[j].position.hasContentDimensions)
scrollController[j].position.notifyListeners();
}
}
_changeing = false;
_changing = false;
}

@override
void debugFillProperties(properties) {
super.debugFillProperties(properties);
properties.add(DiagnosticsProperty<bool>('_changeing', _changeing));
properties.add(DiagnosticsProperty<bool>('_changeing', _changeing));
properties.add(DiagnosticsProperty<bool>('_changing', _changing));
properties.add(DiagnosticsProperty<bool>('_changing', _changing));
}
}

Expand Down

0 comments on commit cf57b14

Please sign in to comment.