getImageButtonWidth static method

double getImageButtonWidth(
  1. BuildContext context, {
  2. UpStyle? override,
  3. UpStyle? style,
  4. UpColorType? colorType,
  5. double? imageWidth,
})

Implementation

static double getImageButtonWidth(BuildContext context,
    {UpStyle? override,
    UpStyle? style,
    UpColorType? colorType,
    double? imageWidth}) {
  return override?.buttonWidth ??
      style?.buttonWidth ??
      imageWidth ??
      getStyleByType(UpConfig.of(context).theme, colorType).buttonWidth ??
      UpConstants.kDefaultStyleButtonWidth;
}