adguard-home-manager/lib/widgets/section_label.dart

32 lines
695 B
Dart
Raw Normal View History

2022-09-27 15:43:52 +02:00
import 'package:flutter/material.dart';
class SectionLabel extends StatelessWidget {
final String label;
2022-10-25 21:12:00 +02:00
final EdgeInsets? padding;
2022-09-27 15:43:52 +02:00
const SectionLabel({
2024-09-11 18:13:26 +02:00
super.key,
2022-10-25 21:12:00 +02:00
required this.label,
this.padding
2024-09-11 18:13:26 +02:00
});
2022-09-27 15:43:52 +02:00
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Padding(
2022-11-05 03:56:04 +01:00
padding: padding ?? const EdgeInsets.all(16),
2022-09-27 15:43:52 +02:00
child: Text(
label,
2022-10-02 19:24:11 +02:00
style: TextStyle(
2022-09-27 15:43:52 +02:00
fontWeight: FontWeight.w500,
2022-10-02 19:24:11 +02:00
fontSize: 16,
2023-01-25 20:51:23 +01:00
color: Theme.of(context).colorScheme.primary
2022-09-27 15:43:52 +02:00
),
),
),
],
);
}
}