UICounterThemeData.config constructor
const
UICounterThemeData.config({
- Color? backgroundColor = Colors.black12,
- Color? foregroundColor = Colors.black,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(100)),
- BoxBorder? border,
- UIIconThemeData? minusIcon = const UIIconThemeData(iconSize: 16),
- UIIconThemeData? plusIcon = const UIIconThemeData(iconSize: 16),
- TextStyle? textStyle = const TextStyle(fontSize: 16),
- TextStyle? zeroStyle = const TextStyle(fontSize: 16, color: Colors.black45),
- double? iconZoneSize = 38,
- double? textZoneSize = 38,
Implementation
const UICounterThemeData.config({
this.backgroundColor = Colors.black12,
this.foregroundColor = Colors.black,
this.borderRadius = const BorderRadius.all(Radius.circular(100)),
this.border,
this.minusIcon = const UIIconThemeData(iconSize: 16),
this.plusIcon = const UIIconThemeData(iconSize: 16),
this.textStyle = const TextStyle(fontSize: 16),
this.zeroStyle = const TextStyle(fontSize: 16, color: Colors.black45),
this.iconZoneSize = 38,
this.textZoneSize = 38,
});