CartStepperStyle class
CartStepper Style. 组件样式
Constructors
- CartStepperStyle({Color activeForegroundColor = Colors.white, Color activeBackgroundColor = Colors.blue, Color foregroundColor = Colors.black54, Color backgroundColor = Colors.white, BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, Color? shadowColor, TextStyle? textStyle, IconThemeData iconTheme = const IconThemeData(), IconData? iconPlus, IconData? iconMinus, double buttonAspectRatio = 1, double elevation = 2})
-
const
- CartStepperStyle.fromColorScheme(ColorScheme colorScheme, {BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, TextStyle? textStyle, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation})
-
Create style from colorScheme
factory
- CartStepperStyle.fromTheme(ThemeData theme, {BoxShape shape = BoxShape.rectangle, Radius? radius, BoxBorder? border, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation})
-
Create style from theme
factory
Properties
- activeBackgroundColor → Color
-
Actived background color 激活状态的背景色
final
- activeForegroundColor → Color
-
Actived foreground color 激活状态的前景色(文字颜色)
final
- backgroundColor → Color
-
Deactived background color 未激活状态的背景色
final
- border → BoxBorder?
-
Add a border around the shape use AnimatedContainer.
recommanded with out elevation.
final
-
Button aspectRatio
final
- elevation → double
-
Widget elevation
final
- foregroundColor → Color
-
Deactived foreground color 未激活状态的前景色(文字颜色)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconMinus → IconData?
-
Subtract button icon
final
- iconPlus → IconData?
-
Add button icon
final
- iconTheme → IconThemeData
-
Icon theme
final
- radius → Radius?
-
Border radius of shape. 形状中的圆角值
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
shadow color 阴影颜色
final
- shape → BoxShape
-
widget shape. 组件形状
final
- textStyle → TextStyle?
-
Value text style 显示值的字体样式
final
Methods
-
copyWith(
{Color? activeForegroundColor, Color? activeBackgroundColor, Color? foregroundColor, Color? backgroundColor, BoxShape? shape, Radius? radius, BoxBorder? border, bool noBorder = false, Color? shadowColor, TextStyle? textStyle, IconThemeData? iconTheme, IconData? iconPlus, IconData? iconMinus, double? buttonAspectRatio, double? elevation}) → CartStepperStyle - copyWidth
-
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