TF-1176 Add padding right for UserInformationWidget in MailboxView

This commit is contained in:
dab246
2023-02-20 13:39:59 +07:00
committed by Dat Vu
parent dbf9caf9c8
commit 57b5f791e5
2 changed files with 8 additions and 10 deletions
@@ -104,12 +104,8 @@ class MailboxView extends GetWidget<MailboxController>
physics: const ClampingScrollPhysics(), physics: const ClampingScrollPhysics(),
padding: EdgeInsets.only(right: _responsiveUtils.isDesktop(context) ? 16 : 0), padding: EdgeInsets.only(right: _responsiveUtils.isDesktop(context) ? 16 : 0),
child: Column(children: [ child: Column(children: [
Obx(() { if (!_responsiveUtils.isDesktop(context))
if (controller.isSelectionEnabled() || _responsiveUtils.isDesktop(context)) { _buildUserInformation(context),
return const SizedBox.shrink();
}
return _buildUserInformation(context);
}),
_buildLoadingView(), _buildLoadingView(),
AppConfig.appGridDashboardAvailable && _responsiveUtils.isWebNotDesktop(context) AppConfig.appGridDashboardAvailable && _responsiveUtils.isWebNotDesktop(context)
? Column(children: [ ? Column(children: [
@@ -223,12 +219,13 @@ class MailboxView extends GetWidget<MailboxController>
padding: const EdgeInsets.symmetric(vertical: 10), padding: const EdgeInsets.symmetric(vertical: 10),
child: Column(children: [ child: Column(children: [
Padding( Padding(
padding: const EdgeInsets.only(left: 16, bottom: 10), padding: const EdgeInsets.only(left: 16, bottom: 10, right: 16),
child: UserInformationWidgetBuilder( child: Obx(() => UserInformationWidgetBuilder(
_imagePaths, _imagePaths,
controller.mailboxDashBoardController.userProfile.value, controller.mailboxDashBoardController.userProfile.value,
subtitle: AppLocalizations.of(context).manage_account, subtitle: AppLocalizations.of(context).manage_account,
onSubtitleClick: () => controller.mailboxDashBoardController.goToSettings())), onSubtitleClick: () => controller.mailboxDashBoardController.goToSettings()),
)),
const Divider(color: AppColor.colorDividerMailbox, height: 0.5, thickness: 0.2) const Divider(color: AppColor.colorDividerMailbox, height: 0.5, thickness: 0.2)
]), ]),
); );
@@ -53,7 +53,8 @@ class UserInformationWidgetBuilder extends StatelessWidget {
child: Text( child: Text(
_userProfile != null ? '${_userProfile?.email}' : '', _userProfile != null ? '${_userProfile?.email}' : '',
maxLines: 1, maxLines: 1,
overflow: GetPlatform.isWeb ? TextOverflow.clip : TextOverflow.ellipsis, overflow: CommonTextStyle.defaultTextOverFlow,
softWrap: CommonTextStyle.defaultSoftWrap,
style: const TextStyle(fontSize: 17, color: AppColor.colorNameEmail, fontWeight: FontWeight.w600) style: const TextStyle(fontSize: 17, color: AppColor.colorNameEmail, fontWeight: FontWeight.w600)
) )
), ),