app/lib/components/section_title.dart
2022-05-17 11:03:41 +07:00

28 lines
656 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.subtitle1!.copyWith(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 20.0,
),
)
],
);
}
}