TF-234 Display bottom bar actions for selection mailbox

This commit is contained in:
dab246
2022-02-24 15:08:14 +07:00
committed by Dat H. Pham
parent cdeab01a58
commit a19f3841d3
10 changed files with 185 additions and 31 deletions
@@ -81,6 +81,7 @@ class ImagePaths {
String get icLogoTMailV2 => _getImagePath('logo_tmail_v2.png');
String get icSendToast => _getImagePath('ic_send_toast.svg');
String get icClearTextSearch => _getImagePath('ic_clear_text_search.svg');
String get icRenameMailbox => _getImagePath('ic_rename_mailbox.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;
@@ -49,20 +49,13 @@ class ButtonBuilder {
}
Widget build() {
return GestureDetector(
onTap: () {
if (_onPressActionClick != null) {
_onPressActionClick!();
}
},
return InkWell(
onTap: () => _onPressActionClick?.call(),
child: Container(
key: _key,
alignment: Alignment.center,
color: Colors.transparent,
child: MediaQuery(
data: MediaQueryData(padding: EdgeInsets.zero),
child: _buildBody()
)
color: Colors.white,
child: _buildBody()
)
);
}
@@ -98,7 +91,7 @@ class ButtonBuilder {
'${_text ?? ''}',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: _textStyle ?? TextStyle(fontSize: 12, color: AppColor.textButtonColor, fontWeight: FontWeight.w500),
style: _textStyle ?? TextStyle(fontSize: 12, color: AppColor.colorTextButton),
);
}
}