Skip to content

Commit

Permalink
Fix select all button is clicked, even advanced search stay overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Oct 1, 2024
1 parent c1c0912 commit fd498ef
Showing 1 changed file with 21 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,37 +294,27 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
if (controller.validateNoEmailsInTrashAndSpamFolder()) {
return const SizedBox.shrink();
} else {
return Padding(
padding: const EdgeInsetsDirectional.only(start: 16),
child: Tooltip(
message: AppLocalizations.of(context).selectAllMessagesOfThisPage,
child: ElevatedButton.icon(
onPressed: controller.selectAllEmailAction,
icon: SvgPicture.asset(
controller.imagePaths.icSelectAll,
width: 16,
height: 16,
fit: BoxFit.fill,
),
label: Text(
AppLocalizations.of(context).selectAllMessagesOfThisPage,
maxLines: 1,
overflow: TextOverflow.ellipsis
),
style: ElevatedButton.styleFrom(
backgroundColor: AppColor.colorButtonHeaderThread,
shadowColor: Colors.transparent,
padding: const EdgeInsetsDirectional.symmetric(horizontal: 12, vertical: 8),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10)),
),
elevation: 0.0,
foregroundColor: AppColor.colorTextButtonHeaderThread,
maximumSize: const Size.fromWidth(250),
textStyle: const TextStyle(fontSize: 12),
),
),
),
return TMailButtonWidget(
key: const Key('select_all_emails_button'),
text: AppLocalizations.of(context).selectAllMessagesOfThisPage,
maxLines: 1,
backgroundColor: AppColor.colorButtonHeaderThread,
maxWidth: 270,
textStyle: const TextStyle(
fontSize: 12,
fontWeight: FontWeight.normal,
color: AppColor.colorTextButtonHeaderThread),
icon: controller.imagePaths.icSelectAll,
iconSize: 16,
borderRadius: 10,
padding: const EdgeInsetsDirectional.symmetric(
horizontal: 12,
vertical: 8),
flexibleText: true,
mainAxisSize: MainAxisSize.min,
margin: const EdgeInsetsDirectional.only(start: 16),
tooltipMessage: AppLocalizations.of(context).selectAllMessagesOfThisPage,
onTapActionCallback: controller.selectAllEmailAction,
);
}
}),
Expand Down

0 comments on commit fd498ef

Please sign in to comment.