import 'package:flutter/material.dart'; class ReusableTextView extends StatelessWidget { final String text; final TextStyle? textStyle; final TextAlign? textAlign; // ignore: prefer_const_constructors_in_immutables, use_key_in_widget_constructors ReusableTextView({ required this.text, this.textStyle, this.textAlign, }); @override Widget build(BuildContext context) { return Text( text, style: textStyle, textAlign: textAlign, ); } }