content: import 'package:flutter/material.dart';
  import 'package:t_store/utils/constraints/enums.dart';
  
  class TBrandTitleText extends StatelessWidget {
    const TBrandTitleText(
        {Key? key,
        this.color,
        required this.title,
        this.maxLines = 1,
        this.textAlign = TextAlign.center,
        this.brandTextSize = TextSizes.small})
        : super(key: key);
  
    final Color? color;
    final String title;
    final int maxLines;
    final TextAlign? textAlign;
    final TextSizes brandTextSize;
  
    @override
    Widget build(BuildContext context) {
      return Text(
        title,
        textAlign: textAlign,
        maxLines: maxLines,
        overflow: TextOverflow.ellipsis,
        style: brandTextSize == TextSizes.small
            ? Theme.of(context).textTheme.labelMedium!.apply(color: color)
            : brandTextSize == TextSizes.medium
                ? Theme.of(context).textTheme.bodyLarge!.apply(color: color)
                : brandTextSize == TextSizes.large
                    ? Theme.of(context).textTheme.titleLarge!.apply(color: color)
                    : Theme.of(context).textTheme.bodyMedium!.apply(color: color),
      );
    }
  }
  