mirrored_repositories/ses_finance/lib
// ignore_for_file: must_be_immutable, file_names

import 'package:flutter/material.dart';

import 'Dimensions.dart';

class BigText extends StatelessWidget {
  //const BigText({super.key});

  final Color? color;
  final String text;
  double size;
  bool isCentre;

  BigText({
    Key? key,
    this.color = Colors.white,
    required this.text,
    this.size = 0,
    this.isCentre = false,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Text(text,
        softWrap: true,
        textAlign: isCentre == true ? TextAlign.center : TextAlign.left,

        // overflow: overFlow,
        style: TextStyle(
          fontFamily: 'Poppins',
          fontSize: size == 0 ? Dimensions.font18 : size,
          color: color,
          fontWeight: FontWeight.w500,
        ));
  }
}
