MihrButtonSizes class
Size presets for sm/md/lg/xl button variants.
Provide a custom MihrButtonSizes via MihrButtonThemeData to override the default sizing globally.
MihrButtonThemeData(
sizes: MihrButtonSizes(
md: MihrButtonSizeData(
height: 44,
paddingV: 12,
paddingH: 16,
textStyle: MihrTypography.textMd.semibold,
),
),
)
- Annotations
Constructors
- MihrButtonSizes({MihrButtonSizeData? sm, MihrButtonSizeData? md, MihrButtonSizeData? lg, MihrButtonSizeData? xl})
- Creates size presets, falling back to defaults for any omitted size.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → MihrButtonSizeData
-
Large button size preset (44px height).
final
- md → MihrButtonSizeData
-
Medium button size preset (40px height).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → MihrButtonSizeData
-
Small button size preset (36px height).
final
- xl → MihrButtonSizeData
-
Extra-large button size preset (48px height).
final
Methods
-
forSize(
MihrButtonSize size) → MihrButtonSizeData -
Resolves the MihrButtonSizeData for a given
size. -
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