fix(ui): Filled button overflow

pull/415/head
Inex Code 2023-12-28 20:07:30 +03:00
parent e3e5570e4e
commit e26b6a23b2
1 changed files with 7 additions and 1 deletions

View File

@ -39,8 +39,14 @@ class BrandButton {
onPressed: onPressed,
style: ElevatedButton.styleFrom(
tapTargetSize: MaterialTapTargetSize.padded,
padding: const EdgeInsets.symmetric(horizontal: 16.0),
),
child: child ?? Text(text ?? ''),
child: child ??
Text(
text ?? '',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
),
),
);
}