import 'package:flutter/material.dart';

import '../utils/cores.dart';

class TextCustom extends StatelessWidget {
  final text;
  final size;
  final color;
  final fontWeight;
  final textAlign;
  final maxLines;

  TextCustom({
    required this.text,
    this.size = 16.0,
    this.color = PaletaCores.cinza,
    this.fontWeight = FontWeight.normal,
    this.textAlign = TextAlign.start,
    this.maxLines = 1,
  });

  @override
  Widget build(BuildContext context) {
    return Text(
      text,
      overflow: TextOverflow.ellipsis,
      textAlign: textAlign,
      style: TextStyle(
        overflow: TextOverflow.ellipsis,
        color: color,
        fontSize: size,
        fontWeight: fontWeight,
        decorationThickness: 4,
        fontFamily: 'Nunito',
        decoration: TextDecoration.none
      ),
      maxLines: maxLines,
    );
  }
}