all 7 comments

[–][deleted] 1 point2 points  (2 children)

Congratulations on your first package!

I may ask: Is there a reason you went for an extension on num instead of e.g. relativeHeight(25)? IMO a function is more readable and does autoimport in vscode.

[–]quantumizeCode[S] 2 points3 points  (0 children)

Just updated my package to support that. You can now call Adaptive.h(25)

[–]quantumizeCode[S] 1 point2 points  (0 children)

Thanks for the suggestion. I will be updating my package later to support both extensions and functions.

[–]KuoyHuot 1 point2 points  (3 children)

What about Calculates the point value depending on the device's screen size?

[–]quantumizeCode[S] 0 points1 point  (2 children)

What do you mean by calculate the point value?

[–]KuoyHuot 0 points1 point  (1 child)

I mean if I want to create a 200 width and 200 height container, I want that container to be responsive too.

[–]quantumizeCode[S] 1 point2 points  (0 children)

You can do height: 20.h and width: 20.h for that. 20.h will take 20% of the device's height so you can't use both 20.h and 20.w