utils/sizes library

Functions

constrainedBigWidth(BuildContext context, double preferredWidth, {double? constraintWidth}) double
Method to get preferredWidth constrained, if is smaller than default width, will return constraintWidth if not null, else return media query.
constrainedHeight(BuildContext context, double preferredHeight) double
Method to get preferredHeight constrained, if is bigger than media query height, will return this.
constrainedWidth(BuildContext context, double preferredWidth, {double? constraintWidth, bool? shouldConstraint}) double
Method to get preferredWidth constrained, if is bigger than media query width, will return constraintWidth if not null, else return media query.