2022-05-13 06:02:53 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class SectionTitle extends StatelessWidget {
|
|
|
|
const SectionTitle({
|
|
|
|
Key? key,
|
|
|
|
required this.title,
|
|
|
|
required this.pressSeeAll,
|
|
|
|
}) : super(key: key);
|
|
|
|
final String title;
|
|
|
|
final VoidCallback pressSeeAll;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Row(
|
2022-05-17 06:03:41 +02:00
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
2022-05-13 06:02:53 +02:00
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
2023-09-22 09:29:07 +02:00
|
|
|
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
2022-05-15 10:02:50 +02:00
|
|
|
color: Colors.white,
|
2022-05-17 06:03:41 +02:00
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 20.0,
|
2022-05-13 06:02:53 +02:00
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|