Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please explain _calculate function? #1

Open
Turbozanik opened this issue Jul 6, 2022 · 0 comments
Open

Can you please explain _calculate function? #1

Turbozanik opened this issue Jul 6, 2022 · 0 comments

Comments

@Turbozanik
Copy link

Turbozanik commented Jul 6, 2022

https://github.com/xamantra/relative_scale/blob/master/lib/src/relative_scale_base.dart

  double _calculate(double value) {
    return ((value / 100) / 5.333333333333333) * (widget.scale ?? 1);
  }

What is going on here, and what is 5.333333333333333?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant