Adjusted some paddings

This commit is contained in:
Juan Gilsanz Polo 2022-10-25 21:12:00 +02:00
parent bc447396de
commit 8478c274f1
8 changed files with 25 additions and 10 deletions

View file

@ -0,0 +1,32 @@
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(25),
child: Text(
label,
style: TextStyle(
fontWeight: FontWeight.w500,
fontSize: 16,
color: Theme.of(context).primaryColor
),
),
),
],
);
}
}