mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 10:33:44 +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,
|
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,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue