subTitle method

Row subTitle(
  1. IconData icon,
  2. String? text,
  3. BuildContext context
)

Implementation

Row subTitle(IconData icon, String? text, BuildContext context) {
  final onSurfaceVariant = Theme.of(context).colorScheme.onSurfaceVariant;
  return Row(
    children: [
      Icon(icon, size: 16, color: onSurfaceVariant),
      const SizedBox(width: 8),
      Text(
        text ?? "",
        style: Theme.of(context)
            .textTheme
            .titleSmall!
            .copyWith(color: onSurfaceVariant),
      ),
    ],
  );
}