fix: set proper padding for primarybuttons

This commit is contained in:
Jacques 2025-02-17 16:19:50 +01:00
parent cff28d13b5
commit 016e27ebab

View file

@ -134,17 +134,19 @@ Widget _defaultButtonBuilder({
required BuildContext context, required BuildContext context,
}) { }) {
var theme = Theme.of(context); var theme = Theme.of(context);
return Padding( return SafeArea(
padding: const EdgeInsets.symmetric(vertical: 20), child: Padding(
child: FilledButton( padding: const EdgeInsets.symmetric(vertical: 28),
style: ElevatedButton.styleFrom( child: FilledButton(
maximumSize: const Size(254, 50), style: ElevatedButton.styleFrom(
minimumSize: const Size(254, 50), maximumSize: const Size(254, 50),
), minimumSize: const Size(254, 50),
onPressed: onPressed, ),
child: Text( onPressed: onPressed,
title, child: Text(
style: theme.textTheme.displayLarge, title,
style: theme.textTheme.displayLarge,
),
), ),
), ),
); );