chipLabelWidth function

double chipLabelWidth(
  1. BuildContext context,
  2. String label
)

Implementation

double chipLabelWidth(BuildContext context, String label) =>
    MeasureScope.of(context)
        .computeTextSize(
          Text(
            label,
            style: AppTextStyle.caption1.of(context, emphasized: true),
          ),
        )
        .width;