50 lines
1.2 KiB
Dart
50 lines
1.2 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TitleBar extends StatelessWidget {
|
|
const new({
|
|
super.key,
|
|
required this.title,
|
|
required this.subTitle,
|
|
required this.shortTitle,
|
|
required this.matchDay,
|
|
});
|
|
|
|
final String title;
|
|
final String subTitle;
|
|
final String shortTitle;
|
|
final int matchDay;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
height: 76,
|
|
child: ColoredBox(
|
|
color: Color(0xFF1A237E),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(8.0),
|
|
child: Row(
|
|
children: [
|
|
CircleAvatar(
|
|
radius: 20,
|
|
backgroundColor: Color(0xFFC62828),
|
|
foregroundColor: Colors.white,
|
|
child: Text(shortTitle.toUpperCase()),
|
|
),
|
|
Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
title.toUpperCase(),
|
|
style: TextStyle(fontSize: 14, color: Color(0xFFBEDBFF)),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|