calseeFaceInset function

EdgeInsets calseeFaceInset(
  1. BuildContext context,
  2. double shortSide, {
  3. double min = 12,
})

Padding that keeps content inside the rounded corners of a key or surface whose shorter side is shortSide.

Implementation

EdgeInsets calseeFaceInset(
  BuildContext context,
  double shortSide, {
  double min = 12,
}) {
  final radius = shortSide * CalcTheme.of(context).keyCornerFraction;
  return EdgeInsets.all(math.max(min, radius * 0.32));
}