Files
syncrow-app/lib/features/shared_widgets/text_widgets/body_large.dart
2024-02-20 16:01:50 +03:00

33 lines
680 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,
});
final String text;
final TextAlign? textAlign;
final TextStyle? style;
final double? height;
final FontWeight? fontWeight;
@override
Widget build(BuildContext context) => CustomText(
text,
style: style ?? context.bodyLarge.copyWith(height: height ?? 1.5),
textAlign: textAlign,
fontWeight: fontWeight,
);
}