From 39a66f678676acb67b1abf79a73fabd64b6c9d83 Mon Sep 17 00:00:00 2001 From: krille-chan Date: Fri, 26 Jul 2024 16:20:13 +0200 Subject: [PATCH] chore: Follow up user bottom sheet --- .../user_bottom_sheet/user_bottom_sheet_view.dart | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart index c6d3b5979..fbdcb52ec 100644 --- a/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart +++ b/lib/pages/user_bottom_sheet/user_bottom_sheet_view.dart @@ -96,7 +96,7 @@ class UserBottomSheetView extends StatelessWidget { ? null : [ Padding( - padding: const EdgeInsets.symmetric(horizontal: 4), + padding: const EdgeInsets.symmetric(horizontal: 8), child: FloatingActionButton.small( elevation: 0, onPressed: () => controller @@ -253,10 +253,17 @@ class UserBottomSheetView extends StatelessWidget { errorText: controller.sendError ?.toLocalizedString(context), hintText: L10n.of(context)!.sendMessages, - suffixIcon: controller.isSending - ? const CircularProgressIndicator.adaptive( - strokeWidth: 2, + suffix: controller.isSending + ? const SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator.adaptive( + strokeWidth: 2, + ), ) + : null, + suffixIcon: controller.isSending + ? null : IconButton( icon: const Icon(Icons.send_outlined), onPressed: controller.sendAction,