28 lines
658 B
Dart
28 lines
658 B
Dart
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.center,
|
|
children: [
|
|
Text(
|
|
title,
|
|
style: Theme.of(context).textTheme.titleMedium!.copyWith(
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.bold,
|
|
fontSize: 20.0,
|
|
),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|