mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
44 lines
886 B
Dart
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,
|
|
),
|
|
);
|
|
}
|