Tweak font weights & styles

This commit is contained in:
tommyxchow 2022-03-30 19:29:51 -04:00
parent 254968a2d6
commit e0b2fcc0b3
11 changed files with 76 additions and 88 deletions

View file

@ -4,12 +4,14 @@ class SectionHeader extends StatelessWidget {
final String text;
final EdgeInsets padding;
final double fontSize;
final FontWeight fontWeight;
const SectionHeader(
this.text, {
Key? key,
this.padding = const EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 5.0),
this.fontSize = 18.0,
this.fontWeight = FontWeight.w600,
}) : super(key: key);
@override
@ -20,7 +22,7 @@ class SectionHeader extends StatelessWidget {
text,
style: TextStyle(
fontSize: fontSize,
fontWeight: FontWeight.bold,
fontWeight: fontWeight,
),
),
);