skip to Main Content

What is the best way to declare the MediaQuery size objects in Flutter

import 'package:flutter/material.dart'; class Home extends StatelessWidget { const Home({super.key}); @override Widget build(BuildContext context) { double screenWidth = MediaQuery.sizeOf(context).width; double screenHeight = MediaQuery.sizeOf(context).height; return SafeArea( child: Scaffold(), ); } } What is the best way to declare MediaQuery objects? That should…

VIEW QUESTION

Html – About 'media="(min-width: 0px)" '

About this code (I found a similar code on the Apple website): <picture> <source srcset="1.jpg, 1_2x.jpg 2x" media="(max-width: 734px)" /> <source srcset="2.jpg, 2_2x.jpg 2x" media="(max-width: 1068px)" /> <source srcset="0.jpg, 0_2x.jpg 2x" media="(min-width: 0px)" /> <img src="0.jpg" alt /> </picture> Question…

VIEW QUESTION
Back To Top
Search