mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
41 lines
1003 B
Dart
41 lines
1003 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncrow_app/features/shared_widgets/text_widgets/custom_text_widget.dart';
|
|
import 'package:syncrow_app/utils/context_extension.dart';
|
|
|
|
class BodyMedium extends StatelessWidget {
|
|
const BodyMedium({
|
|
required this.text,
|
|
super.key,
|
|
this.style,
|
|
this.maxLines,
|
|
this.overflow,
|
|
this.textAlign,
|
|
this.fontSize,
|
|
this.fontColor,
|
|
this.fontWeight,
|
|
});
|
|
|
|
final String text;
|
|
final TextStyle? style;
|
|
final int? maxLines;
|
|
final TextOverflow? overflow;
|
|
|
|
final TextAlign? textAlign;
|
|
final double? fontSize;
|
|
|
|
final Color? fontColor;
|
|
final FontWeight? fontWeight;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => CustomText(
|
|
text,
|
|
style: style ??
|
|
context.bodyMedium.copyWith(
|
|
fontSize: fontSize, color: fontColor, fontWeight: fontWeight),
|
|
// softWrap: true,
|
|
maxLines: maxLines,
|
|
// overflow: overflow,
|
|
textAlign: textAlign,
|
|
);
|
|
}
|