Created
February 13, 2022 08:17
-
-
Save vijaybheda/2a6ce673a9319a8520120d859de8a3f7 to your computer and use it in GitHub Desktop.
Dart - get Responsive Size for all UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:get/get.dart'; | |
| double getSize(double px) { | |
| return px * ((MediaQuery.of(Get.context!).size.width) / 375); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment