ResponsiveConstraints extension

Extension on BoxConstraints for responsive operations

on

Properties

aspectRatio double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get aspect ratio of constraints
no setter
diagonal double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get the diagonal of the constraints
no setter
isLoose bool

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Check if constraints are loose
no setter
isTight bool

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Check if constraints are tight
no setter

Methods

percentHeight(num percent) double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get percentage of max height
percentMinHeight(num percent) double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get percentage of min height
percentMinWidth(num percent) double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get percentage of min width
percentWidth(num percent) double

Available on BoxConstraints, provided by the ResponsiveConstraints extension

Get percentage of max width