42 lines
1.3 KiB
Dart
42 lines
1.3 KiB
Dart
import 'package:a1_aufgabenverwaltung/components/table_header_element.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class TableHeader extends StatelessWidget {
|
|
const TableHeader({super.key, required this.numberWidth, required this.statusWidth, required this.descriptionWidth});
|
|
|
|
final double numberWidth;
|
|
final double statusWidth;
|
|
final double descriptionWidth;
|
|
|
|
static const backgroundColor = Color(0xFF0B0E16);
|
|
static const borderColor = Color(0xFF1E2D3D);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
height: 32,
|
|
decoration: BoxDecoration(
|
|
color: backgroundColor,
|
|
border: Border(
|
|
bottom: BorderSide(
|
|
color: borderColor,
|
|
width: 1
|
|
)
|
|
)
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
|
child: Row(
|
|
spacing: 12,
|
|
children: [
|
|
TableHeaderElement(text: "#", width: 25),
|
|
Expanded(child: TableHeaderElement(text: "Aufgabe", width: 240)),
|
|
Expanded(child: TableHeaderElement(text: "Status", width: 200)),
|
|
Expanded(child: TableHeaderElement(text: "Beschreibung", width: 493,)),
|
|
SizedBox(width: 36),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |