ChipSize class

Size configuration for proportional chip scaling.

Use predefined sizes small, medium, large or create custom sizes. All dimensions are proportionally scaled for visual consistency.

Example:

MultiSelectField<String>.chip(
  label: 'Filter',
  chipSize: ChipSize.small,
  // ...
)

Constructors

ChipSize({required double fontSize, required double iconSize, required EdgeInsets padding, required double borderRadius, double spacing = 4})
const

Properties

borderRadius double
Border radius of the chip.
final
fontSize double
Font size for the chip label.
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double
Icon size for the dropdown arrow.
final
padding EdgeInsets
Padding inside the chip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double
Spacing between label and icon.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

extraLarge → const ChipSize
Extra large chip - maximum visibility.
extraSmall → const ChipSize
Extra small chip - minimal footprint.
large → const ChipSize
Large chip - prominent size.
medium → const ChipSize
Medium chip - default size.
small → const ChipSize
Small chip - compact size.