From 3ef0db855b27eb8b8b690c7ad771bbd0119e9f80 Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 6 Aug 2025 00:04:27 +0700 Subject: [PATCH] TF-3944 Change border radius for "Send" button to match new Twake system Signed-off-by: dab246 --- .../styles/web/bottom_bar_composer_widget_style.dart | 8 +++++--- .../widgets/web/bottom_bar_composer_widget.dart | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.dart b/lib/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.dart index 17cb8cf4b..4830589f0 100644 --- a/lib/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.dart +++ b/lib/features/composer/presentation/styles/web/bottom_bar_composer_widget_style.dart @@ -8,8 +8,10 @@ class BottomBarComposerWidgetStyle { static const double space = 10; static const double sendButtonSpace = 12; static const double iconSize = 24; - static const double sendButtonRadius = 8; - static const double sendButtonIconSpace = 5; + static const double sendButtonRadius = 60; + static const double sendButtonIconSpace = 10; + static const double sendButtonHeight = 46; + static const double sendButtonMinWidth = 129; static const double height = 70; static const Color backgroundColor = Colors.white; @@ -21,7 +23,7 @@ class BottomBarComposerWidgetStyle { static const EdgeInsetsGeometry padding = EdgeInsetsDirectional.symmetric(horizontal: 32); static const EdgeInsetsGeometry iconPadding = EdgeInsetsDirectional.all(5); - static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(vertical: 8, horizontal: 24); + static const EdgeInsetsGeometry sendButtonPadding = EdgeInsetsDirectional.symmetric(horizontal: 11); static const EdgeInsetsGeometry richTextIconPadding = EdgeInsetsDirectional.all(2); static const EdgeInsetsGeometry popupItemPadding = EdgeInsetsDirectional.symmetric(horizontal: 12); diff --git a/lib/features/composer/presentation/widgets/web/bottom_bar_composer_widget.dart b/lib/features/composer/presentation/widgets/web/bottom_bar_composer_widget.dart index ca099be31..d560cdfbc 100644 --- a/lib/features/composer/presentation/widgets/web/bottom_bar_composer_widget.dart +++ b/lib/features/composer/presentation/widgets/web/bottom_bar_composer_widget.dart @@ -210,6 +210,8 @@ class BottomBarComposerWidget extends StatelessWidget { text: AppLocalizations.of(context).send, icon: imagePaths.icSend, iconAlignment: TextDirection.rtl, + height: BottomBarComposerWidgetStyle.sendButtonHeight, + minWidth: BottomBarComposerWidgetStyle.sendButtonMinWidth, padding: BottomBarComposerWidgetStyle.sendButtonPadding, iconSize: BottomBarComposerWidgetStyle.iconSize, iconSpace: BottomBarComposerWidgetStyle.sendButtonIconSpace,