TF-2237 Limit send button clickable only one time

(cherry picked from commit 24ffd7164ee99d4e889814967908ed9c77b38638)
This commit is contained in:
hieubt
2023-10-25 00:14:39 +07:00
committed by Dat H. Pham
parent f7baf72a7c
commit dede42947f
3 changed files with 24 additions and 10 deletions
@@ -19,7 +19,7 @@ class BottomBarComposerWidget extends StatelessWidget {
final VoidCallback saveToDraftAction;
final VoidCallback sendMessageAction;
final OnRequestReadReceiptAction? requestReadReceiptAction;
final bool? isSending;
final bool isSending;
final _imagePaths = Get.find<ImagePaths>();
@@ -35,7 +35,7 @@ class BottomBarComposerWidget extends StatelessWidget {
required this.saveToDraftAction,
required this.sendMessageAction,
this.requestReadReceiptAction,
this.isSending,
this.isSending = false,
});
@override
@@ -128,7 +128,7 @@ class BottomBarComposerWidget extends StatelessWidget {
),
const SizedBox(width: BottomBarComposerWidgetStyle.sendButtonSpace),
TMailButtonWidget(
text: isSending! ? AppLocalizations.of(context).sending : AppLocalizations.of(context).send,
text: isSending ? AppLocalizations.of(context).sending : AppLocalizations.of(context).send,
icon: _imagePaths.icSend,
iconAlignment: TextDirection.rtl,
padding: BottomBarComposerWidgetStyle.sendButtonPadding,