27 lines
630 B
Dart
27 lines
630 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.spaceBetween,
|
|
children: [
|
|
Text(
|
|
title,
|
|
style: Theme.of(context).textTheme.subtitle1!.copyWith(
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|