Files
syncrow-app/lib/features/shared_widgets/text_widgets/custom_text_widget.dart
Mohammad Salameh c5f88caec3 Partially implemented the page view functionality
-page controller on change need to be figured correctly
2024-03-06 23:11:09 +03:00

43 lines
882 B
Dart

import 'package:flutter/material.dart';
class CustomText extends StatelessWidget {
const CustomText(this.text,
{super.key,
this.style,
this.textAlign,
this.onTap,
this.minLines,
this.maxLines,
this.textDirection,
this.fontSize,
this.fontColor,
this.fontWeight});
final String text;
final TextStyle? style;
final TextAlign? textAlign;
final Function()? onTap;
final int? minLines;
final int? maxLines;
final TextDirection? textDirection;
final double? fontSize;
final Color? fontColor;
final FontWeight? fontWeight;
@override
Widget build(BuildContext context) {
//was SelectableText
return Text(
text,
style: style,
textAlign: textAlign,
// onTap: onTap,
// minLines: minLines,
maxLines: maxLines,
textDirection: textDirection,
);
}
}