mobileapplicationPassvault/lib/custom_widgets/reuse_textview.dart

24 lines
494 B
Dart
Raw Permalink Normal View History

2024-04-12 05:23:32 +00:00
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,
);
}
}