From e26b6a23b25c07e00b36752a5855bd16437d261b Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 28 Dec 2023 20:07:30 +0300 Subject: [PATCH] fix(ui): Filled button overflow --- lib/ui/components/buttons/brand_button.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/ui/components/buttons/brand_button.dart b/lib/ui/components/buttons/brand_button.dart index a07a1de0..c381af43 100644 --- a/lib/ui/components/buttons/brand_button.dart +++ b/lib/ui/components/buttons/brand_button.dart @@ -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, + ), ), ); }