UICounterThemeData.config constructor

const UICounterThemeData.config({
  1. Color? backgroundColor = Colors.black12,
  2. Color? foregroundColor = Colors.black,
  3. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(100)),
  4. BoxBorder? border,
  5. UIIconThemeData? minusIcon = const UIIconThemeData(iconSize: 16),
  6. UIIconThemeData? plusIcon = const UIIconThemeData(iconSize: 16),
  7. TextStyle? textStyle = const TextStyle(fontSize: 16),
  8. TextStyle? zeroStyle = const TextStyle(fontSize: 16, color: Colors.black45),
  9. double? iconZoneSize = 38,
  10. 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,
});