Skip to content

Instantly share code, notes, and snippets.

@rutvik110
Created June 21, 2022 09:04
Show Gist options
  • Save rutvik110/7e421a3ef31f57d34907c7f6ba41a4af to your computer and use it in GitHub Desktop.
Save rutvik110/7e421a3ef31f57d34907c7f6ba41a4af to your computer and use it in GitHub Desktop.
double getScaledSize(int index) {
return getPropertyValue(
index: index,
baseValue: baseItemHeight,
maxValue: 70,
nonHoveredMaxValue: 50,
);
}
double getTranslationY(int index) {
return getPropertyValue(
index: index,
baseValue: baseTranslationY,
maxValue: -22,
nonHoveredMaxValue: -14,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment