core/responsive/responsive library

Classes

ResponsiveWidget
A widget that adapts its child based on the screen size.

Enums

Screen
Enum defining different screen sizes for responsive layout.

Constants

largeScreenSize → const int
mediumScreenSize → const int
smallScreenSize → const int
Breakpoints for responsive design based on screen width.

Functions

isExtraLargeScreen(BuildContext context) bool
Checks if the screen size is considered extra-large (width > 1100).
isLargeScreen(BuildContext context) bool
Checks if the screen size is considered large (800 < width <= 1100).
isMediumScreen(BuildContext context) bool
Checks if the screen size is considered medium (400 < width <= 800).
isSmallScreen(BuildContext context) bool
Checks if the screen size is considered small (width <= 400).
responsiveCount(BuildContext context, {required double contentWidth}) int
Determines the current screen size based on the width using the provided condition.
responsiveSize(BuildContext context, {required double s, double? m, double? l, double? xl}) double
Determines the current screen size based on the width using the provided condition.