2021-12-28 22:52:29 -05:00
|
|
|
import 'package:flutter/material.dart';
|
2023-01-18 05:34:54 -05:00
|
|
|
import 'package:frosty/main.dart';
|
2021-12-28 22:52:29 -05:00
|
|
|
|
|
|
|
|
class SectionHeader extends StatelessWidget {
|
|
|
|
|
final String text;
|
2022-07-03 05:43:29 -04:00
|
|
|
final EdgeInsets? padding;
|
2022-05-26 20:00:42 -04:00
|
|
|
final double? fontSize;
|
2021-12-28 22:52:29 -05:00
|
|
|
|
|
|
|
|
const SectionHeader(
|
|
|
|
|
this.text, {
|
|
|
|
|
Key? key,
|
2022-07-03 05:43:29 -04:00
|
|
|
this.padding,
|
2022-05-26 20:00:42 -04:00
|
|
|
this.fontSize,
|
2021-12-28 22:52:29 -05:00
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Padding(
|
2023-01-18 05:34:54 -05:00
|
|
|
padding: padding ?? const EdgeInsets.fromLTRB(16, 30, 16, 5),
|
|
|
|
|
child: Text(
|
|
|
|
|
text,
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: purple,
|
|
|
|
|
fontSize: fontSize ?? 16,
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
),
|
2021-12-28 22:52:29 -05:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|