defaultPinTheme property

PinTheme get defaultPinTheme

Implementation

PinTheme get defaultPinTheme => PinTheme(
  width: sizes.screenWidth * .12,
  height: pinTheme.height ?? sizes.inputHeight,
  margin: EdgeInsets.zero,
  padding: pinTheme.padding ?? EdgeInsets.all(sizes.sm),
  textStyle:
      pinTheme.textStyle ??
      typography.displaySmall.copyWith(
        fontSize: sizes.text2xl,
        fontWeight: FontWeight.w500,
      ),
  constraints: BoxConstraints(
    maxWidth: pinTheme.width ?? sizes.inputHeight,
    maxHeight: pinTheme.height ?? sizes.inputHeight,
  ),
  decoration: BoxDecoration(
    color: pinTheme.backgroundColor ?? theme.inputDecorationTheme.fillColor,
    borderRadius:
        pinTheme.borderRadiusFromInput ??
        BorderRadius.circular(sizes.inputRadius),
    border:
        pinTheme.primaryBorder ??
        Border.fromBorderSide(
          theme.inputDecorationTheme.border?.borderSide ?? BorderSide.none,
        ),
  ),
);