TF-249 Change ui mailbox list

This commit is contained in:
dab246
2022-02-09 20:00:59 +07:00
committed by Dat H. Pham
parent 2c8cd967c0
commit 6f9b9d27b4
22 changed files with 312 additions and 210 deletions
@@ -68,6 +68,9 @@ extension AppColor on Color {
static const colorHintSearchBar = Color(0xFF818C99);
static const colorBgSearchBar = Color(0xFFEBEDF0);
static const colorShadowBgContentEmail = Color(0x14000000);
static const colorDividerMailbox = Color(0xFF99A2AD);
static const colorArrowUserMailbox = Color(0xFFB8C1CC);
static const colorBgMailbox = Color(0xFFF7F7F7);
static const mapGradientColor = [
[Color(0xFF21D4FD), Color(0xFFB721FF)],
@@ -2,7 +2,7 @@ import 'package:core/presentation/resources/assets_paths.dart';
class ImagePaths {
String get icTMailLogo => _getImagePath('tmail_logo.svg');
String get icCloseMailbox => _getImagePath('ic_close.svg');
String get icClose => _getImagePath('ic_close.svg');
String get icSearch => _getImagePath('ic_search.svg');
String get icNextArrow => _getImagePath('ic_next_arrow.svg');
String get icMailboxInbox => _getImagePath('ic_mailbox_inbox.svg');
@@ -66,6 +66,15 @@ class ImagePaths {
String get icForwardV2 => _getImagePath('ic_forward_v2.svg');
String get icMoveEmail => _getImagePath('ic_move_email.svg');
String get icUnreadEmail => _getImagePath('ic_unread_email.svg');
String get icCloseMailbox => _getImagePath('ic_close_mailbox.svg');
String get icAddNewFolder => _getImagePath('ic_add_new_folder.svg');
String get icFolderMailbox => _getImagePath('ic_folder_mailbox.svg');
String get icMailboxInboxV2 => _getImagePath('ic_mailbox_inbox_v2.svg');
String get icMailboxDraftsV2 => _getImagePath('ic_mailbox_drafts_v2.svg');
String get icMailboxSentV2 => _getImagePath('ic_mailbox_sent_v2.svg');
String get icMailboxArchivedV2 => _getImagePath('ic_mailbox_archived_v2.svg');
String get icMailboxSpamV2 => _getImagePath('ic_mailbox_spam_v2.svg');
String get icMailboxTrashV2 => _getImagePath('ic_mailbox_trash_v2.svg');
String _getImagePath(String imageName) {
return AssetsPaths.images + imageName;
@@ -13,6 +13,7 @@ class AvatarBuilder {
Color? _textColor;
OnTapAvatarActionClick? _onTapAvatarActionClick;
List<Color>? _avatarColors;
List<BoxShadow>? _boxShadows;
void key(Key key) {
_key = key;
@@ -43,6 +44,10 @@ class AvatarBuilder {
_avatarColors = avatarColors;
}
void addBoxShadows(List<BoxShadow>? boxShadows) {
_boxShadows = boxShadows;
}
void addOnTapActionClick(OnTapAvatarActionClick onTapAvatarActionClick) {
_onTapAvatarActionClick = onTapAvatarActionClick;
}
@@ -67,6 +72,7 @@ class AvatarBuilder {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular((_size ?? 40) / 2),
border: Border.all(color: Colors.transparent),
boxShadow: _boxShadows ?? [],
gradient: _avatarColors?.isNotEmpty == true
? LinearGradient(
begin: Alignment.topCenter,