make method

  1. @override
Widget make(
  1. BuildContext context,
  2. ThemeData theme
)
override

Implementation

@override
Widget make(context, theme) {
  final label =
      text ?? (value != null ? ((value! > 999) ? "999+" : "$value") : null);
  return Box(
      kind: type.kind,
      manner: ColorManners.major,
      constraints: const RemConstraints(minWidth: 1),
      decoration: BoxDecoration(borderRadius: BorderRadius.circular(30)),
      padding: RemInsets.symmetric(
          vertical: 0.06,
          horizontal: value != null || (text ?? "").length > 0 ? .35 : .6),
      child: Text(label ?? "", style: TypeStyles.bodyS));
}