27 lines
600 B
Dart
27 lines
600 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TableHeaderElement extends StatelessWidget {
|
|
const TableHeaderElement({super.key, required this.text, required this.width});
|
|
|
|
final String text;
|
|
final double width;
|
|
|
|
static const textColor = Color(0xFF64748B);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
width: width,
|
|
height: 15,
|
|
child: Text(
|
|
text.toUpperCase(),
|
|
style: TextStyle(
|
|
color: textColor,
|
|
fontWeight: FontWeight(600),
|
|
fontSize: 10,
|
|
letterSpacing: 1,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |