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
@@ -37,7 +37,7 @@ class TMailButtonWidget extends StatelessWidget {
final TextDirection iconAlignment;
final int? maxLines;
final MainAxisSize mainAxisSize;
final bool? isLoading;
final bool isLoading;
const TMailButtonWidget({
super.key,
@@ -289,7 +289,7 @@ class TMailButtonWidget extends StatelessWidget {
softWrap: maxLines == 1 ? CommonTextStyle.defaultSoftWrap : null,
),
SizedBox(width: iconSpace),
if (!isLoading!)
if (!isLoading)
SvgPicture.asset(
icon!,
width: iconSize,