frosty/lib/widgets/section_header.dart

30 lines
630 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class SectionHeader extends StatelessWidget {
final String text;
final EdgeInsets padding;
2022-05-26 20:00:42 -04:00
final double? fontSize;
const SectionHeader(
this.text, {
Key? key,
this.padding = const EdgeInsets.fromLTRB(10.0, 20.0, 10.0, 5.0),
2022-05-26 20:00:42 -04:00
this.fontSize,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: padding,
child: Text(
2022-05-24 18:43:12 -04:00
text.toUpperCase(),
style: TextStyle(
fontSize: fontSize,
2022-05-26 20:00:42 -04:00
fontWeight: FontWeight.w600,
letterSpacing: 0.8,
),
),
);
}
}