app/lib/components/section_title.dart

29 lines
656 B
Dart
Raw Normal View History

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.subtitle1!.copyWith(
2022-05-15 10:02:50 +02:00
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 20.0,
),
)
],
);
}
}