MyoroButtonThemeExtension class
- Inheritance
-
- Object
- ThemeExtension<
MyoroButtonThemeExtension> - MyoroButtonThemeExtension
- Implemented types
- Available extensions
- Annotations
-
- @immutable
- @myoroThemeExtension
Constructors
- MyoroButtonThemeExtension.new({Color? backgroundIdleColor, Color? backgroundHoverColor, Color? backgroundTapColor, Color? contentIdleColor, Color? contentHoverColor, Color? contentTapColor, double? borderWidth, BorderRadius? borderRadius, Color? borderIdleColor, Color? borderHoverColor, Color? borderTapColor})
-
const
- MyoroButtonThemeExtension.builder(MyoroDecorationThemeExtension decorationThemeExtension)
- MyoroButtonThemeExtension.fake()
Properties
- backgroundHoverColor → Color?
-
MyoroTapStatusEnum.hover's background Color.
final
- backgroundIdleColor → Color?
-
MyoroTapStatusEnum.idle's background Color.
final
- backgroundTapColor → Color?
-
MyoroTapStatusEnum.tap's background Color.
final
- borderHoverColor → Color?
-
MyoroTapStatusEnum.hover's border Color.
final
- borderIdleColor → Color?
-
MyoroTapStatusEnum.idle's border Color.
final
- borderRadius → BorderRadius?
-
Border radius.
final
- borderTapColor → Color?
-
MyoroTapStatusEnum.tap's border Color.
final
- borderWidth → double?
-
Border width.
final
- contentHoverColor → Color?
-
MyoroTapStatusEnum.hover's content Color.
final
- contentIdleColor → Color?
-
MyoroTapStatusEnum.idle's content Color.
final
- contentTapColor → Color?
-
MyoroTapStatusEnum.tap's content Color.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- self → MyoroButtonThemeExtension
-
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
backgroundColorBuilder(
MyoroTapStatusEnum tapStatus) → Color? -
Available on T, provided by the MyoroButtonStyleExtension extension
Background Color builder. -
borderBuilder(
MyoroTapStatusEnum tapStatus) → BoxBorder? -
Available on T, provided by the MyoroButtonStyleExtension extension
BoxBorder builder. -
bordered(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Border adder. -
contentColorBuilder(
MyoroTapStatusEnum tapStatus) → Color? -
Available on T, provided by the MyoroButtonStyleExtension extension
Content Color builder. -
copyWith(
{Color? backgroundIdleColor, bool backgroundIdleColorProvided = true, Color? backgroundHoverColor, bool backgroundHoverColorProvided = true, Color? backgroundTapColor, bool backgroundTapColorProvided = true, Color? contentIdleColor, bool contentIdleColorProvided = true, Color? contentHoverColor, bool contentHoverColorProvided = true, Color? contentTapColor, bool contentTapColorProvided = true, double? borderWidth, bool borderWidthProvided = true, BorderRadius? borderRadius, bool borderRadiusProvided = true, Color? borderIdleColor, bool borderIdleColorProvided = true, Color? borderHoverColor, bool borderHoverColorProvided = true, Color? borderTapColor, bool borderTapColorProvided = true}) → MyoroButtonThemeExtension -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
inherited
-
lerp(
covariant MyoroButtonThemeExtension? other, double t) → MyoroButtonThemeExtension -
Linearly interpolate with another ThemeExtension object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
primary(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Use the primary theme variant. -
secondary(
BuildContext context) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Use the secondary theme variant. -
singleBackgroundColor(
Color? color) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Creates a style with a singular Color. -
singleContentColor(
Color? color) → T -
Available on T, provided by the MyoroButtonStyleExtension extension
Creates a style with a singular Color. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited