30 lines
646 B
Dart
30 lines
646 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:frosty/main.dart';
|
|
|
|
class SectionHeader extends StatelessWidget {
|
|
final String text;
|
|
final EdgeInsets? padding;
|
|
final double? fontSize;
|
|
|
|
const SectionHeader(
|
|
this.text, {
|
|
Key? key,
|
|
this.padding,
|
|
this.fontSize,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: padding ?? const EdgeInsets.fromLTRB(16, 30, 16, 5),
|
|
child: Text(
|
|
text,
|
|
style: TextStyle(
|
|
color: purple,
|
|
fontSize: fontSize ?? 16,
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|