mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-20 13:59:12 +00:00
32 lines
No EOL
695 B
Dart
32 lines
No EOL
695 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SectionLabel extends StatelessWidget {
|
|
final String label;
|
|
final EdgeInsets? padding;
|
|
|
|
const SectionLabel({
|
|
super.key,
|
|
required this.label,
|
|
this.padding
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Padding(
|
|
padding: padding ?? const EdgeInsets.all(16),
|
|
child: Text(
|
|
label,
|
|
style: TextStyle(
|
|
fontWeight: FontWeight.w500,
|
|
fontSize: 16,
|
|
color: Theme.of(context).colorScheme.primary
|
|
),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
} |