TF-2237 Limit send button clickable only one time
(cherry picked from commit 24ffd7164ee99d4e889814967908ed9c77b38638)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user