widgets/responsive_layout
library
Classes
-
ResponsiveLayout
-
A widget that provides a responsive layout based on the screen size.
It displays different widgets for mobile, tablet, and desktop sizes.
The mobile layout is used for screens smaller than 650 pixels,
the tablet layout is used for screens between 650 and 1100 pixels,
and the desktop layout is used for screens larger than 1100 pixels.
The tablet layout is optional and defaults to the desktop layout if not provided.
The
ResponsiveLayout widget is useful for creating applications
that need to adapt to different screen sizes and orientations.
It uses the MediaQuery class to determine the screen size and
display the appropriate layout.
The ResponsiveLayout widget takes three required parameters: