47 lines
1.3 KiB
Dart
47 lines
1.3 KiB
Dart
import 'package:a1_aufgabenverwaltung/components/table_header_element.dart';
|
|
import 'package:a1_aufgabenverwaltung/main.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class TableHeader extends StatelessWidget {
|
|
const TableHeader({
|
|
super.key,
|
|
});
|
|
|
|
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, vertical: 8),
|
|
child: Row(
|
|
spacing: 12,
|
|
children: [
|
|
TableHeaderElement(text: "#", width: Widths.numberWidth),
|
|
Expanded(
|
|
child: TableHeaderElement(text: "Aufgabe", width: Widths.titleWidth),
|
|
),
|
|
Expanded(
|
|
child: TableHeaderElement(text: "Status", width: Widths.statusWidth),
|
|
),
|
|
Expanded(
|
|
child: TableHeaderElement(
|
|
text: "Beschreibung",
|
|
width: Widths.descriptionWidth,
|
|
),
|
|
),
|
|
SizedBox(width: 36),
|
|
SizedBox(width: 32),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|