getImageButtonHeight static method

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

Implementation

static double getImageButtonHeight(BuildContext context,
    {UpStyle? override,
    UpStyle? style,
    UpColorType? colorType,
    double? imageHeight}) {
  return override?.buttonHeight ??
      style?.buttonHeight ??
      imageHeight ??
      getStyleByType(UpConfig.of(context).theme, colorType).buttonHeight ??
      UpConstants.kDefaultStyleButtonHeight;
}