dev
dart 21 lines 554 Bytes
Raw
1 import 'package:flutter/material.dart';
2
3 class PickerSectionHeader extends StatelessWidget {
4 const PickerSectionHeader({super.key, required this.title});
5
6 final String title;
7
8 @override
9 Widget build(BuildContext context) {
10 return Padding(
11 padding: const EdgeInsets.fromLTRB(4, 12, 4, 8),
12 child: Text(
13 title,
14 style: Theme.of(context).textTheme.bodyMedium?.copyWith(
15 fontWeight: FontWeight.w500,
16 color: Theme.of(context).colorScheme.onSurfaceVariant,
17 ),
18 ),
19 );
20 }
21 }