mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 02:23:46 +02:00
fix: set proper padding for primarybuttons
This commit is contained in:
parent
cff28d13b5
commit
016e27ebab
1 changed files with 13 additions and 11 deletions
|
@ -134,17 +134,19 @@ Widget _defaultButtonBuilder({
|
|||
required BuildContext context,
|
||||
}) {
|
||||
var theme = Theme.of(context);
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 20),
|
||||
child: FilledButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
maximumSize: const Size(254, 50),
|
||||
minimumSize: const Size(254, 50),
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(
|
||||
title,
|
||||
style: theme.textTheme.displayLarge,
|
||||
return SafeArea(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 28),
|
||||
child: FilledButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
maximumSize: const Size(254, 50),
|
||||
minimumSize: const Size(254, 50),
|
||||
),
|
||||
onPressed: onPressed,
|
||||
child: Text(
|
||||
title,
|
||||
style: theme.textTheme.displayLarge,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue