Files
linkding-ios/lib/widgets/section_label.dart
2024-02-22 11:54:44 +01:00

29 lines
658 B
Dart

import 'package:flutter/material.dart';
class SectionLabel extends StatelessWidget {
final String label;
final EdgeInsets? padding;
const SectionLabel({
Key? key,
required this.label,
this.padding,
}) : super(key: key);
@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),
),
),
],
);
}
}