TF-2857 Change logo & text in application

This commit is contained in:
dab246
2024-06-06 00:04:25 +07:00
committed by Dat H. Pham
parent d2a48cd6ab
commit 2228d1a5d8
11 changed files with 132 additions and 85 deletions
+48
View File
@@ -0,0 +1,48 @@
<svg width="1131" height="221" viewBox="0 0 1131 221" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M265.244 71.2701H229V48.4366H326.858V71.2701H290.614V175.29H265.244V71.2701Z" fill="black"/>
<path d="M309.226 81.0559H337.859L350 134.515C351.329 139.952 352.296 144.724 352.9 148.832C353.745 143.637 354.772 138.804 355.98 134.334L369.753 81.0559H397.842L412.521 134.334C413.729 138.804 414.756 143.637 415.601 148.832C416.205 144.724 417.172 139.952 418.501 134.515L431.549 81.0559H458.188L428.83 175.29H402.372L386.969 121.649C385.519 117.3 384.432 112.588 383.707 107.514C382.861 113.071 381.895 117.783 380.807 121.649L366.672 175.29H338.583L309.226 81.0559Z" fill="black"/>
<path d="M501.941 177.645C493.484 177.645 485.691 175.471 478.563 171.122C471.436 166.651 465.757 160.671 461.529 153.181C457.421 145.691 455.367 137.475 455.367 128.535C455.367 119.595 457.421 111.38 461.529 103.889C465.757 96.2783 471.436 90.2376 478.563 85.7676C485.691 81.2975 493.484 79.0625 501.941 79.0625C509.673 79.0625 515.895 80.5122 520.606 83.4117C525.439 86.3112 529.184 90.4793 531.842 95.9158V81.0559H556.125V175.29H532.385V159.886C529.607 165.564 525.801 169.974 520.969 173.115C516.257 176.135 509.914 177.645 501.941 177.645ZM479.832 128.354C479.832 133.186 480.919 137.717 483.094 141.945C485.389 146.053 488.47 149.375 492.336 151.912C496.323 154.329 500.853 155.537 505.927 155.537C511.122 155.537 515.713 154.329 519.7 151.912C523.808 149.496 526.949 146.234 529.123 142.127C531.298 138.019 532.385 133.488 532.385 128.535C532.385 123.582 531.298 119.051 529.123 114.944C526.949 110.715 523.808 107.393 519.7 104.977C515.713 102.44 511.122 101.171 505.927 101.171C500.853 101.171 496.323 102.44 492.336 104.977C488.349 107.393 485.269 110.655 483.094 114.763C480.919 118.87 479.832 123.401 479.832 128.354Z" fill="black"/>
<path d="M595.125 130.529V175.29H570.661V43H595.125V119.112L630.463 81.0559H665.257L620.858 124.911L665.438 175.29H633L595.125 130.529Z" fill="black"/>
<path d="M704.978 177.645C695.433 177.645 686.977 175.471 679.607 171.122C672.237 166.651 666.499 160.671 662.391 153.181C658.284 145.691 656.23 137.415 656.23 128.354C656.23 119.414 658.344 111.138 662.573 103.527C666.801 95.9158 672.6 89.8752 679.969 85.4051C687.46 80.9351 695.796 78.7001 704.978 78.7001C714.159 78.7001 722.375 80.9351 729.623 85.4051C736.993 89.8752 742.671 95.9158 746.658 103.527C750.766 111.017 752.819 119.293 752.819 128.354C752.819 131.374 752.578 134.274 752.094 137.052H681.6C683.05 142.731 685.768 147.322 689.755 150.825C693.863 154.208 698.937 155.899 704.978 155.899C710.052 155.899 714.582 154.751 718.569 152.456C722.556 150.04 725.697 146.959 727.992 143.214L747.02 157.53C743.154 163.571 737.476 168.464 729.986 172.209C722.495 175.833 714.159 177.645 704.978 177.645ZM728.174 118.749C726.724 113.313 723.885 108.782 719.656 105.158C715.428 101.534 710.414 99.7214 704.615 99.7214C698.937 99.7214 693.984 101.473 689.755 104.977C685.648 108.48 682.929 113.071 681.6 118.749H728.174Z" fill="black"/>
<path d="M804.389 52.2196H833.655L858.043 104.192C864.883 118.657 869.257 129.142 871.163 135.645C872.733 129.59 877.05 119.106 884.114 104.192L908.671 52.2196H936.928V169.957H913.885V122.358C913.885 114.621 913.997 108.341 914.221 103.52C914.446 98.698 914.894 93.596 915.567 88.2137L876.377 169.957H864.94L825.75 88.2137C826.422 93.596 826.871 98.698 827.095 103.52C827.32 108.341 827.432 114.621 827.432 122.358V169.957H804.389V52.2196Z" fill="url(#paint0_linear_56880_7452)"/>
<path d="M991.877 172.144C984.028 172.144 976.795 170.126 970.18 166.089C963.564 161.94 958.294 156.39 954.369 149.437C950.557 142.485 948.65 134.86 948.65 126.563C948.65 118.265 950.557 110.64 954.369 103.688C958.294 96.6236 963.564 91.017 970.18 86.8682C976.795 82.7193 984.028 80.6449 991.877 80.6449C999.053 80.6449 1004.83 81.9905 1009.2 84.6816C1013.69 87.3728 1017.16 91.2413 1019.63 96.2872V82.495H1042.17V169.957H1020.13V155.661C1017.56 160.931 1014.02 165.024 1009.54 167.939C1005.16 170.742 999.278 172.144 991.877 172.144ZM971.357 126.394C971.357 130.88 972.366 135.085 974.384 139.009C976.515 142.822 979.374 145.905 982.963 148.26C986.663 150.503 990.868 151.624 995.577 151.624C1000.4 151.624 1004.66 150.503 1008.36 148.26C1012.17 146.017 1015.09 142.99 1017.11 139.177C1019.12 135.365 1020.13 131.16 1020.13 126.563C1020.13 121.965 1019.12 117.76 1017.11 113.948C1015.09 110.023 1012.17 106.94 1008.36 104.697C1004.66 102.342 1000.4 101.165 995.577 101.165C990.868 101.165 986.663 102.342 982.963 104.697C979.262 106.94 976.403 109.967 974.384 113.78C972.366 117.592 971.357 121.797 971.357 126.394Z" fill="url(#paint1_linear_56880_7452)"/>
<path d="M1055.66 82.495H1078.37V169.957H1055.66V82.495ZM1053.3 61.8068C1053.3 58.1065 1054.59 54.9668 1057.17 52.3878C1059.86 49.8088 1063.12 48.5193 1066.93 48.5193C1070.85 48.5193 1074.1 49.8088 1076.68 52.3878C1079.26 54.9668 1080.55 58.1065 1080.55 61.8068C1080.55 65.6193 1079.26 68.815 1076.68 71.3941C1074.1 73.9731 1070.85 75.2626 1066.93 75.2626C1063.12 75.2626 1059.86 73.9731 1057.17 71.3941C1054.59 68.7029 1053.3 65.5072 1053.3 61.8068Z" fill="url(#paint2_linear_56880_7452)"/>
<path d="M1091.8 47.1737H1114.5V169.957H1091.8V47.1737Z" fill="url(#paint3_linear_56880_7452)"/>
<rect y="11.9999" width="196.105" height="196.105" rx="64.7641" fill="white"/>
<rect y="11.9999" width="196.105" height="196.105" rx="64.7641" fill="url(#paint4_linear_56880_7452)"/>
<g filter="url(#filter0_d_56880_7452)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.3522 84.1512C35.719 87.6846 33 93.1776 33 99.0044V152.32C33 164.7 43.0357 174.735 55.4154 174.735H140.585C152.964 174.735 163 164.7 163 152.32V99.0044C163 93.1776 160.281 87.6846 155.648 84.1512L109.327 48.8264C102.637 43.7246 93.3625 43.7246 86.6727 48.8264L40.3522 84.1512ZM47.4444 96.8396V153.101C47.4444 157.227 50.7897 160.573 54.9163 160.573H141.084C145.21 160.573 148.556 157.227 148.556 153.101V96.8396L106.573 126.243C101.426 129.847 94.5741 129.847 89.4274 126.243L47.4444 96.8396Z" fill="white"/>
</g>
<defs>
<filter id="filter0_d_56880_7452" x="23" y="37.0001" width="150" height="149.735" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2"/>
<feGaussianBlur stdDeviation="5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_56880_7452"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_56880_7452" result="shape"/>
</filter>
<linearGradient id="paint0_linear_56880_7452" x1="839.944" y1="16.2261" x2="839.944" y2="172" gradientUnits="userSpaceOnUse">
<stop stop-color="#57B9FF"/>
<stop offset="1" stop-color="#0B84FF"/>
</linearGradient>
<linearGradient id="paint1_linear_56880_7452" x1="839.944" y1="16.2261" x2="839.944" y2="172" gradientUnits="userSpaceOnUse">
<stop stop-color="#57B9FF"/>
<stop offset="1" stop-color="#0B84FF"/>
</linearGradient>
<linearGradient id="paint2_linear_56880_7452" x1="839.944" y1="16.2261" x2="839.944" y2="172" gradientUnits="userSpaceOnUse">
<stop stop-color="#57B9FF"/>
<stop offset="1" stop-color="#0B84FF"/>
</linearGradient>
<linearGradient id="paint3_linear_56880_7452" x1="839.944" y1="16.2261" x2="839.944" y2="172" gradientUnits="userSpaceOnUse">
<stop stop-color="#57B9FF"/>
<stop offset="1" stop-color="#0B84FF"/>
</linearGradient>
<linearGradient id="paint4_linear_56880_7452" x1="27.5" y1="187.5" x2="191.5" y2="21.4999" gradientUnits="userSpaceOnUse">
<stop stop-color="#1E91FF"/>
<stop offset="0.997303" stop-color="#2ED9FF"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 7.6 KiB

+19 -18
View File
@@ -1,22 +1,23 @@
<svg width="197" height="196" viewBox="0 0 197 196" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.265625" width="196" height="196" rx="64.7295" fill="white"/>
<rect x="0.265625" width="196" height="196" rx="64.7295" fill="url(#paint0_linear_56449_2948)"/>
<rect x="0.265625" width="196" height="196" rx="64.7295" fill="url(#paint1_linear_56449_2948)"/>
<rect x="0.265625" width="196" height="196" rx="64.7295" fill="url(#paint2_linear_56449_2948)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.7604 68.2245C28.1112 71.7701 25.3828 77.2821 25.3828 83.129V146.492C25.3828 158.915 35.4532 168.985 47.8757 168.985H148.428C160.85 168.985 170.921 158.915 170.921 146.492V83.129C170.921 77.2821 168.192 71.7701 163.543 68.2245L109.518 27.0241C102.805 21.9047 93.4984 21.9047 86.7854 27.0241L32.7604 68.2245ZM41.5537 81.7787V145.632C41.5537 149.772 44.9105 153.129 49.0513 153.129H147.252C151.393 153.129 154.75 149.772 154.75 145.632V81.7787L106.754 115.393C101.59 119.01 94.7141 119.01 89.5496 115.393L41.5537 81.7787Z" fill="white"/>
<svg width="197" height="197" viewBox="0 0 197 197" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="196.105" height="196.105" rx="64.7641" fill="white"/>
<rect width="196.105" height="196.105" rx="64.7641" fill="url(#paint0_linear_56880_7724)"/>
<g filter="url(#filter0_d_56880_7724)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M40.3522 72.1511C35.719 75.6845 33 81.1775 33 87.0043V140.32C33 152.7 43.0357 162.735 55.4154 162.735H140.585C152.964 162.735 163 152.7 163 140.32V87.0043C163 81.1775 160.281 75.6845 155.648 72.1511L109.327 36.8263C102.637 31.7246 93.3625 31.7245 86.6727 36.8263L40.3522 72.1511ZM47.4444 84.8395V141.101C47.4444 145.227 50.7897 148.573 54.9163 148.573H141.084C145.21 148.573 148.556 145.227 148.556 141.101V84.8395L106.573 114.243C101.426 117.847 94.5741 117.847 89.4274 114.243L47.4444 84.8395Z" fill="white"/>
</g>
<defs>
<linearGradient id="paint0_linear_56449_2948" x1="196.266" y1="114.333" x2="143.2" y2="80.4541" gradientUnits="userSpaceOnUse">
<stop offset="0.12998" stop-color="#A033FF"/>
<stop offset="0.610381" stop-color="#0094FF"/>
<stop offset="1" stop-color="#1D90FF"/>
</linearGradient>
<linearGradient id="paint1_linear_56449_2948" x1="90.099" y1="61.25" x2="28.8489" y2="183.75" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFD600" stop-opacity="0"/>
<stop offset="0.563347" stop-color="#FFC700"/>
</linearGradient>
<linearGradient id="paint2_linear_56449_2948" x1="106.432" y1="114.333" x2="175.849" y2="187.833" gradientUnits="userSpaceOnUse">
<stop offset="0.0297327" stop-color="#FF3B30" stop-opacity="0"/>
<stop offset="0.842824" stop-color="#E73B2D"/>
<filter id="filter0_d_56880_7724" x="23" y="25" width="150" height="149.735" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="2"/>
<feGaussianBlur stdDeviation="5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_56880_7724"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_56880_7724" result="shape"/>
</filter>
<linearGradient id="paint0_linear_56880_7724" x1="27.5" y1="175.5" x2="191.5" y2="9.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#1E91FF"/>
<stop offset="0.997303" stop-color="#2ED9FF"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -195,6 +195,7 @@ class ImagePaths {
String get icEventUpdated => _getImagePath('ic_event_updated.svg');
String get icEventCanceled => _getImagePath('ic_event_canceled.svg');
String get icFormatQuote => _getImagePath('ic_format_quote.svg');
String get icLogoWithText => _getImagePath('ic_logo_with_text.svg');
String get icTMailLogo => _getImagePath('ic_tmail_logo.svg');
String get icLoginGraphic => _getImagePath('ic_login_graphic.svg');
String get icCancel => _getImagePath('ic_cancel.svg');
@@ -39,6 +39,7 @@ class TMailButtonWidget extends StatelessWidget {
final int? maxLines;
final MainAxisSize mainAxisSize;
final bool isLoading;
final Color? hoverColor;
const TMailButtonWidget({
super.key,
@@ -72,6 +73,7 @@ class TMailButtonWidget extends StatelessWidget {
this.maxLines,
this.mainAxisSize = MainAxisSize.max,
this.isLoading = false,
this.hoverColor,
});
factory TMailButtonWidget.fromIcon({
@@ -96,6 +98,7 @@ class TMailButtonWidget extends StatelessWidget {
Color? trailingIconColor,
List<BoxShadow>? boxShadow,
EdgeInsetsGeometry? margin,
Color? hoverColor,
}) {
return TMailButtonWidget(
key: key,
@@ -120,6 +123,7 @@ class TMailButtonWidget extends StatelessWidget {
trailingIconColor: trailingIconColor,
boxShadow: boxShadow,
margin: margin,
hoverColor: hoverColor,
);
}
@@ -144,6 +148,7 @@ class TMailButtonWidget extends StatelessWidget {
bool flexibleText = false,
BoxBorder? border,
int? maxLines,
Color? hoverColor,
}) {
return TMailButtonWidget(
key: key,
@@ -166,6 +171,7 @@ class TMailButtonWidget extends StatelessWidget {
flexibleText: flexibleText,
border: border,
maxLines: maxLines,
hoverColor: hoverColor,
);
}
@@ -353,6 +359,7 @@ class TMailButtonWidget extends StatelessWidget {
margin: margin,
boxShadow: boxShadow,
border: border,
hoverColor: hoverColor,
child: childWidget,
);
}
@@ -21,6 +21,7 @@ class TMailContainerWidget extends StatelessWidget {
final EdgeInsetsGeometry? margin;
final List<BoxShadow>? boxShadow;
final BoxBorder? border;
final Color? hoverColor;
const TMailContainerWidget({
super.key,
@@ -39,27 +40,31 @@ class TMailContainerWidget extends StatelessWidget {
this.boxShadow,
this.margin,
this.border,
this.hoverColor,
});
@override
Widget build(BuildContext context) {
final materialChild = Material(
color: Colors.transparent,
type: MaterialType.transparency,
child: InkWell(
onTap: onTapActionCallback,
onTapDown: (detail) {
if (onTapActionAtPositionCallback != null) {
final screenSize = MediaQuery.of(context).size;
final offset = detail.globalPosition;
final position = RelativeRect.fromLTRB(
offset.dx,
offset.dy,
screenSize.width - offset.dx,
screenSize.height - offset.dy,
);
onTapActionAtPositionCallback!.call(position);
}
},
onTapDown: onTapActionAtPositionCallback != null
? (detail) {
if (onTapActionAtPositionCallback != null) {
final screenSize = MediaQuery.of(context).size;
final offset = detail.globalPosition;
final position = RelativeRect.fromLTRB(
offset.dx,
offset.dy,
screenSize.width - offset.dx,
screenSize.height - offset.dy,
);
onTapActionAtPositionCallback!.call(position);
}
}
: null,
hoverColor: hoverColor,
onLongPress: onLongPressActionCallback,
borderRadius: BorderRadius.all(Radius.circular(borderRadius)),
child: tooltipMessage != null
@@ -0,0 +1,25 @@
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/presentation/views/button/tmail_button_widget.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
class ApplicationLogoWidthTextWidget extends StatelessWidget {
final ImagePaths _imagePaths = Get.find<ImagePaths>();
final VoidCallback? onTapAction;
ApplicationLogoWidthTextWidget({super.key, this.onTapAction});
@override
Widget build(BuildContext context) {
return TMailButtonWidget.fromIcon(
icon: _imagePaths.icLogoWithText,
iconSize: 33,
padding: EdgeInsets.zero,
backgroundColor: Colors.transparent,
hoverColor: Colors.transparent,
onTapActionCallback: onTapAction,
);
}
}
@@ -5,6 +5,7 @@ import 'package:core/presentation/views/text/slogan_builder.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get_state_manager/src/rx_flutter/rx_obx_widget.dart';
import 'package:tmail_ui_user/features/base/widget/application_logo_with_text_widget.dart';
import 'package:tmail_ui_user/features/login/presentation/base_login_view.dart';
import 'package:tmail_ui_user/features/login/presentation/login_form_type.dart';
import 'package:tmail_ui_user/features/login/presentation/privacy_link_widget.dart';
@@ -39,7 +40,7 @@ class LoginView extends BaseLoginView {
children: [
Padding(
padding: const EdgeInsets.only(top: 67),
child: _buildAppLogo(context)
child: ApplicationLogoWidthTextWidget()
),
Padding(
padding: const EdgeInsets.only(top: 67),
@@ -181,7 +182,7 @@ class LoginView extends BaseLoginView {
children: [
Padding(
padding: const EdgeInsets.only(top: 66),
child: _buildAppLogo(context)
child: ApplicationLogoWidthTextWidget()
),
Padding(
padding: const EdgeInsets.only(top: 67),
@@ -221,27 +222,6 @@ class LoginView extends BaseLoginView {
);
}
Widget _buildAppLogo(BuildContext buildContext) {
return Row(
mainAxisSize: MainAxisSize.min,
children: [
SvgPicture.asset(
controller.imagePaths.icTMailLogo,
fit: BoxFit.fill,
width: 36,
height: 36,
alignment: Alignment.center),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 10),
child: Text(
AppLocalizations.of(buildContext).app_name,
style: const TextStyle(color: Colors.black, fontSize: 24, fontWeight: FontWeight.bold),
textAlign: TextAlign.center),
),
]
);
}
Widget _buildLoadingProgress(BuildContext context) {
return Obx(() => controller.viewState.value.fold(
(failure) {
@@ -3,6 +3,7 @@ import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:model/model.dart';
import 'package:tmail_ui_user/features/base/widget/application_logo_with_text_widget.dart';
import 'package:tmail_ui_user/features/base/widget/application_version_widget.dart';
import 'package:tmail_ui_user/features/base/widget/scrollbar_list_view.dart';
import 'package:tmail_ui_user/features/mailbox/presentation/base_mailbox_view.dart';
@@ -64,13 +65,7 @@ class MailboxView extends BaseMailboxView {
start: controller.responsiveUtils.isDesktop(context) ? 32 : 16,
),
child: Row(children: [
SloganBuilder(
sizeLogo: 24,
text: AppLocalizations.of(context).app_name,
textAlign: TextAlign.center,
textStyle: const TextStyle(color: Colors.black, fontSize: 20, fontWeight: FontWeight.bold),
logoSVG: controller.imagePaths.icTMailLogo
),
ApplicationLogoWidthTextWidget(),
ApplicationVersionWidget(
applicationManager: controller.mailboxDashBoardController.applicationManager,
padding: const EdgeInsets.only(top: 4),
@@ -5,6 +5,7 @@ import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
import 'package:model/extensions/username_extension.dart';
import 'package:model/mailbox/presentation_mailbox.dart';
import 'package:tmail_ui_user/features/base/widget/application_logo_with_text_widget.dart';
import 'package:tmail_ui_user/features/base/widget/application_version_widget.dart';
import 'package:tmail_ui_user/features/base/widget/popup_item_no_icon_widget.dart';
import 'package:tmail_ui_user/features/composer/presentation/composer_view_web.dart';
@@ -69,13 +70,8 @@ class MailboxDashBoardView extends BaseMailboxDashBoardView {
alignment: Alignment.center,
height: 80,
child: Row(children: [
SloganBuilder(
sizeLogo: 24,
text: AppLocalizations.of(context).app_name,
textAlign: TextAlign.center,
textStyle: const TextStyle(color: Colors.black, fontSize: 20, fontWeight: FontWeight.bold),
logoSVG: controller.imagePaths.icTMailLogo,
onTapCallback: controller.redirectToInboxAction,
ApplicationLogoWidthTextWidget(
onTapAction: controller.redirectToInboxAction,
),
ApplicationVersionWidget(
applicationManager: controller.applicationManager
@@ -3,11 +3,11 @@ import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/utils/responsive_utils.dart';
import 'package:core/presentation/views/image/avatar_builder.dart';
import 'package:core/presentation/views/responsive/responsive_widget.dart';
import 'package:core/presentation/views/text/slogan_builder.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:model/model.dart';
import 'package:tmail_ui_user/features/base/state/banner_state.dart';
import 'package:tmail_ui_user/features/base/widget/application_logo_with_text_widget.dart';
import 'package:tmail_ui_user/features/base/widget/application_version_widget.dart';
import 'package:tmail_ui_user/features/mailbox_dashboard/presentation/mixin/user_setting_popup_menu_mixin.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/always_read_receipt/always_read_receipt_view.dart';
@@ -25,7 +25,6 @@ import 'package:tmail_ui_user/features/manage_account/presentation/model/account
import 'package:tmail_ui_user/features/manage_account/presentation/profiles/profiles_view.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/vacation/vacation_view.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/vacation/widgets/vacation_notification_message_widget.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
import 'package:tmail_ui_user/main/routes/route_navigation.dart';
class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardController>
@@ -47,13 +46,8 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
Container(width: 256, color: Colors.white,
padding: SettingsUtils.getPaddingHeaderSetting(context),
child: Row(children: [
SloganBuilder(
sizeLogo: 24,
text: AppLocalizations.of(context).app_name,
textAlign: TextAlign.center,
textStyle: const TextStyle(color: Colors.black, fontSize: 20, fontWeight: FontWeight.bold),
logoSVG: controller.imagePaths.icTMailLogo,
onTapCallback: () => controller.backToMailboxDashBoard(context: context),
ApplicationLogoWidthTextWidget(
onTapAction: () => controller.backToMailboxDashBoard(context: context),
),
ApplicationVersionWidget(
applicationManager: controller.applicationManager
@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
import 'package:tmail_ui_user/features/base/widget/application_version_widget.dart';
import 'package:tmail_ui_user/features/base/widget/application_logo_with_text_widget.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/menu/manage_account_menu_controller.dart';
import 'package:tmail_ui_user/features/manage_account/presentation/menu/widgets/account_menu_item_tile_builder.dart';
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
@@ -25,13 +26,7 @@ class ManageAccountMenuView extends GetWidget<ManageAccountMenuController> {
color: Colors.white,
padding: const EdgeInsets.only(top: 16, bottom: 16, left: 16),
child: Row(children: [
SloganBuilder(
sizeLogo: 24,
text: AppLocalizations.of(context).app_name,
textAlign: TextAlign.center,
textStyle: const TextStyle(color: Colors.black, fontSize: 20, fontWeight: FontWeight.bold),
logoSVG: controller.imagePaths.icTMailLogo
),
ApplicationLogoWidthTextWidget(),
ApplicationVersionWidget(
applicationManager: controller.dashBoardController.applicationManager,
padding: const EdgeInsets.only(top: 4),