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(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: Theme.of(context).textTheme.subtitle1!.copyWith(
|
2022-05-15 10:02:50 +02:00
|
|
|
color: Colors.white,
|
2022-05-13 06:02:53 +02:00
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|