30 lines
661 B
Dart
30 lines
661 B
Dart
import 'package:cims_apps/application/theme/color_palette.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class TextTitle extends StatelessWidget {
|
|
final String title;
|
|
final Color? color;
|
|
final double? fontSize;
|
|
final TextAlign? textAlign;
|
|
const TextTitle({
|
|
Key? key,
|
|
required this.title,
|
|
this.color,
|
|
this.fontSize,
|
|
this.textAlign,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Text(
|
|
title,
|
|
textAlign: textAlign,
|
|
style: TextStyle(
|
|
fontSize: fontSize ?? 20,
|
|
fontWeight: FontWeight.w700,
|
|
color: color ?? ColorPalette.slate800,
|
|
),
|
|
);
|
|
}
|
|
}
|