What is the best way to handle with screen sizes in Flutter?

Posted by Pinki | Updated on

What is the best way to handle with screen sizes in Flutter? You can use the BuildContext context with a MediaQuery to get the current devices screen size and can set the size of your widgets based on that value.

For example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers