In a Flutter web app, ________ can be used to define different styles based on screen sizes.

  • DeviceStyles
  • MediaQuery
  • ResponsiveLayout
  • WebStyles
The MediaQuery class in Flutter is used to obtain information about the current device's screen size and other characteristics. For Flutter web apps, MediaQuery is particularly helpful in defining different styles based on screen sizes. By querying the screen size using MediaQuery, you can dynamically adapt the app's layout and styling to provide an optimal user experience across various devices, ensuring a responsive and visually appealing design.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *