2021-12-28 22:52:29 -05:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
class SectionHeader extends StatelessWidget {
|
|
|
|
|
final String text;
|
|
|
|
|
final EdgeInsets padding;
|
2021-12-29 18:11:39 -05:00
|
|
|
final double fontSize;
|
2022-03-30 19:29:51 -04:00
|
|
|
final FontWeight fontWeight;
|
2021-12-28 22:52:29 -05:00
|
|
|
|
|
|
|
|
const SectionHeader(
|
|
|
|
|
this.text, {
|
|
|
|
|
Key? key,
|
2022-03-29 13:49:21 -04:00
|
|
|
this.padding = const EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 5.0),
|
2022-05-24 18:43:12 -04:00
|
|
|
this.fontSize = 12.0,
|
|
|
|
|
this.fontWeight = FontWeight.bold,
|
2021-12-28 22:52:29 -05:00
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Padding(
|
|
|
|
|
padding: padding,
|
|
|
|
|
child: Text(
|
2022-05-24 18:43:12 -04:00
|
|
|
text.toUpperCase(),
|
2021-12-29 18:11:39 -05:00
|
|
|
style: TextStyle(
|
2022-05-24 18:43:12 -04:00
|
|
|
color: DefaultTextStyle.of(context).style.color?.withOpacity(0.8),
|
2021-12-29 18:11:39 -05:00
|
|
|
fontSize: fontSize,
|
2022-03-30 19:29:51 -04:00
|
|
|
fontWeight: fontWeight,
|
2022-05-24 18:43:12 -04:00
|
|
|
letterSpacing: 0.5,
|
2021-12-29 18:11:39 -05:00
|
|
|
),
|
2021-12-28 22:52:29 -05:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|