Files
syncrow-app/lib/features/shared_widgets/text_widgets/body_large.dart
Mohammad Salameh 4c27cce519 Switches updated
2024-02-27 10:13:58 +03:00

44 lines
886 B
Dart

import 'package:flutter/material.dart';
import 'package:syncrow_app/utils/context_extension.dart';
import 'custom_text_widget.dart';
class BodyLarge extends StatelessWidget {
const BodyLarge({
required this.text,
super.key,
this.textAlign,
this.style,
this.height,
this.fontWeight,
this.fontColor,
this.fontSize,
});
final String text;
final TextAlign? textAlign;
final TextStyle? style;
final double? height;
final FontWeight? fontWeight;
final Color? fontColor;
final double? fontSize;
@override
Widget build(BuildContext context) => CustomText(
text,
textAlign: textAlign,
style: style ??
context.bodyLarge.copyWith(
height: height ?? 1.5,
fontWeight: fontWeight,
color: fontColor,
fontSize: fontSize,
),
);
}