34 lines
855 B
Dart
34 lines
855 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TableRowElement extends StatelessWidget {
|
|
const TableRowElement({super.key, required this.width, required this.text, required this.paddingVertical, required this.fontWeight, required this.fontSize, required this.textColor});
|
|
|
|
final double width;
|
|
final String text;
|
|
final double paddingVertical;
|
|
final FontWeight fontWeight;
|
|
final Color textColor;
|
|
final double fontSize;
|
|
|
|
static const double hight = 26;
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
width: width,
|
|
child: Padding(
|
|
padding: EdgeInsets.symmetric(vertical: paddingVertical),
|
|
child: Text(
|
|
text,
|
|
style: TextStyle(
|
|
fontWeight: fontWeight,
|
|
color: textColor,
|
|
fontSize: fontSize,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|