fixOffset method
void
fixOffset()
Implementation
void fixOffset() {
int tempFixedOffset = (scrollController.offset + 0.5) ~/ 1;
double fixedOffset = (tempFixedOffset + _ruleScaleInterval / 2) ~/
_ruleScaleInterval.toInt() *
_ruleScaleInterval;
Future.delayed(Duration.zero, () {
scrollController.animateTo(fixedOffset,
duration: Duration(milliseconds: 50), curve: Curves.bounceInOut);
});
}