resolveMinHeight static method

double? resolveMinHeight(
  1. BuildContext context,
  2. FlyStyle style
)

Resolves min height from FlyStyle and FlyTheme into double

Implementation

static double? resolveMinHeight(BuildContext context, FlyStyle style) {
  if (style.minH == null) return null;

  try {
    final spacing = FlyTheme.of(context).spacing;
    return _resolveValue(style.minH, context, spacing);
  } catch (e) {
    throw ArgumentError('Failed to resolve min height: $e');
  }
}