Skip to content

Added size extensions in MediaQueryExt#12

Open
akshaybhange wants to merge 2 commits intopedromassango:masterfrom
akshaybhange:MediaQueryExt_size
Open

Added size extensions in MediaQueryExt#12
akshaybhange wants to merge 2 commits intopedromassango:masterfrom
akshaybhange:MediaQueryExt_size

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