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

Added size extensions in MediaQueryExt #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

akshaybhange
Copy link

added Height, Width, heightPercentage & WidthPercentage in MediaQueryExt

Copy link
Owner

@pedromassango pedromassango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @akshaybhange
Thanks for this contribution.

We may need to update the documentation as well (describe what each new property do)


double get heightPx => mediaQuerySize.height;

double widthPct(int percentage) => (percentage * widthPx)/ 100;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 and 12 line not are formateds

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

Successfully merging this pull request may close these issues.

3 participants