ResponsiveValue

class ResponsiveValue(sm: Property, md: Property, lg: Property, xl: Property)

Defines a responsive Property that can have different values for different screen sizes. Per default the value for a certain screen size is the same as the value for the next smaller screen size. You can define the concrete screen sizes that apply in the Theme you use.

Parameters

sm

value for small screens like phones (and default for all the others)

md

value for middle screens like tablets (and default for all the others)

lg

value for large screens (and default for all the others)

xl

value for extra large screens (and default for all the others)

Constructors

ResponsiveValue
Link copied to clipboard
fun ResponsiveValue(sm: Property, md: Property = sm, lg: Property = md, xl: Property = lg)
value for small screens like phones (and default for all the others)

Properties

lg
Link copied to clipboard
val lg: Property
value for large screens (and default for all the others)
md
Link copied to clipboard
val md: Property
value for middle screens like tablets (and default for all the others)
sm
Link copied to clipboard
val sm: Property
value for small screens like phones (and default for all the others)
xl
Link copied to clipboard
val xl: Property
value for extra large screens (and default for all the others)