TF-3956 Adjust UI for vacation section in setting on mobile
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -72,7 +72,12 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
|
|||||||
Obx(() {
|
Obx(() {
|
||||||
if (controller.vacationResponse.value?.vacationResponderIsValid == true) {
|
if (controller.vacationResponse.value?.vacationResponderIsValid == true) {
|
||||||
return VacationNotificationMessageWidget(
|
return VacationNotificationMessageWidget(
|
||||||
margin: const EdgeInsetsDirectional.only(top: 16, start: 16, end: 16),
|
margin: EdgeInsetsDirectional.only(
|
||||||
|
start: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
end: 16,
|
||||||
|
top: controller.responsiveUtils.isWebDesktop(context) ? 16 : 0,
|
||||||
|
bottom: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
),
|
||||||
fromAccountDashBoard: true,
|
fromAccountDashBoard: true,
|
||||||
vacationResponse: controller.vacationResponse.value!,
|
vacationResponse: controller.vacationResponse.value!,
|
||||||
actionGotoVacationSetting: !controller.inVacationSettings()
|
actionGotoVacationSetting: !controller.inVacationSettings()
|
||||||
@@ -83,7 +88,12 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
|
|||||||
|| controller.vacationResponse.value?.vacationResponderIsStopped == true)
|
|| controller.vacationResponse.value?.vacationResponderIsStopped == true)
|
||||||
&& controller.accountMenuItemSelected.value == AccountMenuItem.vacation) {
|
&& controller.accountMenuItemSelected.value == AccountMenuItem.vacation) {
|
||||||
return VacationNotificationMessageWidget(
|
return VacationNotificationMessageWidget(
|
||||||
margin: const EdgeInsetsDirectional.only(top: 16, start: 16, end: 16),
|
margin: EdgeInsetsDirectional.only(
|
||||||
|
start: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
end: 16,
|
||||||
|
top: controller.responsiveUtils.isWebDesktop(context) ? 16 : 0,
|
||||||
|
bottom: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
),
|
||||||
fromAccountDashBoard: true,
|
fromAccountDashBoard: true,
|
||||||
vacationResponse: controller.vacationResponse.value!,
|
vacationResponse: controller.vacationResponse.value!,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
|
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
|
||||||
@@ -139,7 +149,7 @@ class ManageAccountDashBoardView extends GetWidget<ManageAccountDashBoardControl
|
|||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
case AccountMenuItem.vacation:
|
case AccountMenuItem.vacation:
|
||||||
return VacationView();
|
return const VacationView();
|
||||||
case AccountMenuItem.mailboxVisibility:
|
case AccountMenuItem.mailboxVisibility:
|
||||||
return MailboxVisibilityView();
|
return MailboxVisibilityView();
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -42,7 +42,12 @@ class SettingsView extends GetWidget<SettingsController> {
|
|||||||
Obx(() {
|
Obx(() {
|
||||||
if (controller.manageAccountDashboardController.vacationResponse.value?.vacationResponderIsValid == true) {
|
if (controller.manageAccountDashboardController.vacationResponse.value?.vacationResponderIsValid == true) {
|
||||||
return VacationNotificationMessageWidget(
|
return VacationNotificationMessageWidget(
|
||||||
margin: const EdgeInsetsDirectional.only(start: 12, end: 12, top: 8),
|
margin: EdgeInsetsDirectional.only(
|
||||||
|
start: 12,
|
||||||
|
end: 12,
|
||||||
|
top: controller.responsiveUtils.isWebDesktop(context) ? 8 : 0,
|
||||||
|
bottom: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
),
|
||||||
fromAccountDashBoard: true,
|
fromAccountDashBoard: true,
|
||||||
vacationResponse: controller.manageAccountDashboardController.vacationResponse.value!,
|
vacationResponse: controller.manageAccountDashboardController.vacationResponse.value!,
|
||||||
actionGotoVacationSetting: !controller.manageAccountDashboardController.inVacationSettings()
|
actionGotoVacationSetting: !controller.manageAccountDashboardController.inVacationSettings()
|
||||||
@@ -54,7 +59,12 @@ class SettingsView extends GetWidget<SettingsController> {
|
|||||||
|| controller.manageAccountDashboardController.vacationResponse.value?.vacationResponderIsStopped == true)
|
|| controller.manageAccountDashboardController.vacationResponse.value?.vacationResponderIsStopped == true)
|
||||||
&& controller.manageAccountDashboardController.inVacationSettings()) {
|
&& controller.manageAccountDashboardController.inVacationSettings()) {
|
||||||
return VacationNotificationMessageWidget(
|
return VacationNotificationMessageWidget(
|
||||||
margin: const EdgeInsetsDirectional.only(start: 12, end: 12, top: 8),
|
margin: EdgeInsetsDirectional.only(
|
||||||
|
start: 12,
|
||||||
|
end: 12,
|
||||||
|
top: controller.responsiveUtils.isWebDesktop(context) ? 8 : 0,
|
||||||
|
bottom: controller.responsiveUtils.isWebDesktop(context) ? 0 : 16,
|
||||||
|
),
|
||||||
fromAccountDashBoard: true,
|
fromAccountDashBoard: true,
|
||||||
vacationResponse: controller.manageAccountDashboardController.vacationResponse.value!,
|
vacationResponse: controller.manageAccountDashboardController.vacationResponse.value!,
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
|
padding: const EdgeInsets.symmetric(vertical: 10, horizontal: 16),
|
||||||
@@ -114,7 +124,7 @@ class SettingsView extends GetWidget<SettingsController> {
|
|||||||
}
|
}
|
||||||
case AccountMenuItem.vacation:
|
case AccountMenuItem.vacation:
|
||||||
if (controller.manageAccountDashboardController.isVacationCapabilitySupported) {
|
if (controller.manageAccountDashboardController.isVacationCapabilitySupported) {
|
||||||
return VacationView();
|
return const VacationView();
|
||||||
} else {
|
} else {
|
||||||
return const SizedBox.shrink();
|
return const SizedBox.shrink();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
imagePaths: controller.imagePaths,
|
imagePaths: controller.imagePaths,
|
||||||
label: AppLocalizations.of(context).vacationSettingToggleButtonAutoReply,
|
label: AppLocalizations.of(context).vacationSettingToggleButtonAutoReply,
|
||||||
isActive: !isVacationDeactivated,
|
isActive: !isVacationDeactivated,
|
||||||
padding: const EdgeInsets.only(top: 10, bottom: 12),
|
padding: const EdgeInsets.only(top: 10),
|
||||||
onSwitchAction: () {
|
onSwitchAction: () {
|
||||||
final newStatus = isVacationDeactivated
|
final newStatus = isVacationDeactivated
|
||||||
? VacationResponderStatus.activated
|
? VacationResponderStatus.activated
|
||||||
@@ -63,73 +63,57 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
SizedBox(
|
||||||
|
height: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 12,
|
||||||
|
),
|
||||||
Obx(() => AbsorbPointer(
|
Obx(() => AbsorbPointer(
|
||||||
absorbing: controller.isVacationDeactivated,
|
absorbing: controller.isVacationDeactivated,
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: controller.isVacationDeactivated ? 0.3 : 1.0,
|
opacity: controller.isVacationDeactivated ? 0.3 : 1.0,
|
||||||
child: controller.responsiveUtils.isScreenWithShortestSide(context)
|
child: Row(
|
||||||
? Column(children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
LabelBorderButtonField<DateTime>(
|
children: [
|
||||||
label: AppLocalizations.of(context).startDate,
|
LabelBorderButtonField<DateTime>(
|
||||||
value: controller.vacationPresentation.value.startDate,
|
label: AppLocalizations.of(context).startDate,
|
||||||
isEmpty: !controller.isVacationDeactivated &&
|
value: controller.vacationPresentation.value.startDate,
|
||||||
|
isEmpty: !controller.isVacationDeactivated &&
|
||||||
controller.vacationPresentation.value.startDateIsNull,
|
controller.vacationPresentation.value.startDateIsNull,
|
||||||
hintText: AppLocalizations.of(context).startDate,
|
hintText: 'dd/mm/yyyy',
|
||||||
onSelectValueAction: (value) => controller.selectDate(
|
arrangeHorizontally: !controller.responsiveUtils.isScreenWithShortestSide(context),
|
||||||
context,
|
minWidth: controller.responsiveUtils.isScreenWithShortestSide(context) ? 117 : null,
|
||||||
DateType.start,
|
onSelectValueAction: (value) => controller.selectDate(
|
||||||
value,
|
context,
|
||||||
),
|
DateType.start,
|
||||||
|
value,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 18),
|
|
||||||
LabelBorderButtonField<TimeOfDay>(
|
|
||||||
label: AppLocalizations.of(context).startTime,
|
|
||||||
value: controller.vacationPresentation.value.startTime,
|
|
||||||
isEmpty: !controller.isVacationDeactivated &&
|
|
||||||
controller.vacationPresentation.value.starTimeIsNull,
|
|
||||||
hintText: 'dd/mm/yyyy',
|
|
||||||
onSelectValueAction: (value) => controller.selectTime(
|
|
||||||
context,
|
|
||||||
DateType.start,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
])
|
|
||||||
: Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
LabelBorderButtonField<DateTime>(
|
|
||||||
label: AppLocalizations.of(context).startDate,
|
|
||||||
value: controller.vacationPresentation.value.startDate,
|
|
||||||
isEmpty: !controller.isVacationDeactivated &&
|
|
||||||
controller.vacationPresentation.value.startDateIsNull,
|
|
||||||
hintText: AppLocalizations.of(context).startDate,
|
|
||||||
onSelectValueAction: (value) => controller.selectDate(
|
|
||||||
context,
|
|
||||||
DateType.start,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 32),
|
|
||||||
LabelBorderButtonField<TimeOfDay>(
|
|
||||||
label: AppLocalizations.of(context).startTime,
|
|
||||||
value: controller.vacationPresentation.value.startTime,
|
|
||||||
isEmpty: !controller.isVacationDeactivated &&
|
|
||||||
controller.vacationPresentation.value.starTimeIsNull,
|
|
||||||
hintText: 'hh:min AM/PM',
|
|
||||||
horizontalSpacing: 8,
|
|
||||||
minWidth: 117,
|
|
||||||
onSelectValueAction: (value) => controller.selectTime(
|
|
||||||
context,
|
|
||||||
DateType.start,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 32),
|
||||||
|
LabelBorderButtonField<TimeOfDay>(
|
||||||
|
label: AppLocalizations.of(context).startTime,
|
||||||
|
value: controller.vacationPresentation.value.startTime,
|
||||||
|
isEmpty: !controller.isVacationDeactivated &&
|
||||||
|
controller.vacationPresentation.value.starTimeIsNull,
|
||||||
|
hintText: 'hh:min AM/PM',
|
||||||
|
horizontalSpacing: 8,
|
||||||
|
arrangeHorizontally: !controller.responsiveUtils.isScreenWithShortestSide(context),
|
||||||
|
minWidth: controller.responsiveUtils.isScreenWithShortestSide(context) ? 117 : null,
|
||||||
|
onSelectValueAction: (value) => controller.selectTime(
|
||||||
|
context,
|
||||||
|
DateType.start,
|
||||||
|
value,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
const SizedBox(height: 37),
|
SizedBox(
|
||||||
|
height: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 37,
|
||||||
|
),
|
||||||
Obx(
|
Obx(
|
||||||
() => AbsorbPointer(
|
() => AbsorbPointer(
|
||||||
absorbing: controller.isVacationDeactivated,
|
absorbing: controller.isVacationDeactivated,
|
||||||
@@ -153,73 +137,56 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
SizedBox(
|
||||||
|
height: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 12,
|
||||||
|
),
|
||||||
Obx(() => AbsorbPointer(
|
Obx(() => AbsorbPointer(
|
||||||
absorbing: !controller.canChangeEndDate,
|
absorbing: !controller.canChangeEndDate,
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
opacity: !controller.canChangeEndDate ? 0.3 : 1.0,
|
opacity: !controller.canChangeEndDate ? 0.3 : 1.0,
|
||||||
child: controller.responsiveUtils.isScreenWithShortestSide(context)
|
child: Row(
|
||||||
? Column(children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
LabelBorderButtonField<DateTime>(
|
children: [
|
||||||
label: AppLocalizations.of(context).endDate,
|
LabelBorderButtonField<DateTime>(
|
||||||
value: controller.vacationPresentation.value.endDate,
|
label: AppLocalizations.of(context).endDate,
|
||||||
isEmpty: controller.canChangeEndDate &&
|
value: controller.vacationPresentation.value.endDate,
|
||||||
controller.vacationPresentation.value.endDateIsNull,
|
isEmpty: controller.canChangeEndDate && controller.vacationPresentation.value.endDateIsNull,
|
||||||
hintText: 'dd/mm/yyyy',
|
hintText: 'dd/mm/yyyy',
|
||||||
onSelectValueAction: (value) => controller.selectDate(
|
arrangeHorizontally: !controller.responsiveUtils.isScreenWithShortestSide(context),
|
||||||
context,
|
minWidth: controller.responsiveUtils.isScreenWithShortestSide(context) ? 117 : null,
|
||||||
DateType.end,
|
onSelectValueAction: (value) => controller.selectDate(
|
||||||
value,
|
context,
|
||||||
),
|
DateType.end,
|
||||||
|
value,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 18),
|
|
||||||
LabelBorderButtonField<TimeOfDay>(
|
|
||||||
label: AppLocalizations.of(context).endTime,
|
|
||||||
value: controller.vacationPresentation.value.endTime,
|
|
||||||
isEmpty: controller.canChangeEndDate &&
|
|
||||||
controller.vacationPresentation.value.endTimeIsNull,
|
|
||||||
hintText: 'hh:min AM/PM',
|
|
||||||
onSelectValueAction: (value) => controller.selectTime(
|
|
||||||
context,
|
|
||||||
DateType.end,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
])
|
|
||||||
: Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
LabelBorderButtonField<DateTime>(
|
|
||||||
label: AppLocalizations.of(context).endDate,
|
|
||||||
value: controller.vacationPresentation.value.endDate,
|
|
||||||
isEmpty: controller.canChangeEndDate && controller.vacationPresentation.value.endDateIsNull,
|
|
||||||
hintText: 'dd/mm/yyyy',
|
|
||||||
onSelectValueAction: (value) => controller.selectDate(
|
|
||||||
context,
|
|
||||||
DateType.end,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 32),
|
|
||||||
LabelBorderButtonField<TimeOfDay>(
|
|
||||||
label: AppLocalizations.of(context).endTime,
|
|
||||||
value: controller.vacationPresentation.value.endTime,
|
|
||||||
isEmpty: controller.canChangeEndDate &&
|
|
||||||
controller.vacationPresentation.value.endTimeIsNull,
|
|
||||||
hintText: 'hh:min AM/PM',
|
|
||||||
horizontalSpacing: 8,
|
|
||||||
minWidth: 117,
|
|
||||||
onSelectValueAction: (value) => controller.selectTime(
|
|
||||||
context,
|
|
||||||
DateType.end,
|
|
||||||
value,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
const SizedBox(width: 32),
|
||||||
|
LabelBorderButtonField<TimeOfDay>(
|
||||||
|
label: AppLocalizations.of(context).endTime,
|
||||||
|
value: controller.vacationPresentation.value.endTime,
|
||||||
|
isEmpty: controller.canChangeEndDate &&
|
||||||
|
controller.vacationPresentation.value.endTimeIsNull,
|
||||||
|
hintText: 'hh:min AM/PM',
|
||||||
|
horizontalSpacing: 8,
|
||||||
|
arrangeHorizontally: !controller.responsiveUtils.isScreenWithShortestSide(context),
|
||||||
|
minWidth: controller.responsiveUtils.isScreenWithShortestSide(context) ? 117 : null,
|
||||||
|
onSelectValueAction: (value) => controller.selectTime(
|
||||||
|
context,
|
||||||
|
DateType.end,
|
||||||
|
value,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
)),
|
)),
|
||||||
const SizedBox(height: 12),
|
SizedBox(
|
||||||
|
height: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 12,
|
||||||
|
),
|
||||||
Obx(() => AbsorbPointer(
|
Obx(() => AbsorbPointer(
|
||||||
absorbing: controller.isVacationDeactivated,
|
absorbing: controller.isVacationDeactivated,
|
||||||
child: controller.responsiveUtils.isScreenWithShortestSide(context)
|
child: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
@@ -230,6 +197,7 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
hintText: AppLocalizations.of(context).hintSubjectInputVacationSetting,
|
hintText: AppLocalizations.of(context).hintSubjectInputVacationSetting,
|
||||||
textEditingController: controller.subjectTextController,
|
textEditingController: controller.subjectTextController,
|
||||||
focusNode: controller.subjectTextFocusNode,
|
focusNode: controller.subjectTextFocusNode,
|
||||||
|
arrangeHorizontally: false,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Opacity(
|
: Opacity(
|
||||||
@@ -242,7 +210,11 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
const SizedBox(height: 12),
|
SizedBox(
|
||||||
|
height: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 12,
|
||||||
|
),
|
||||||
Obx(() => AbsorbPointer(
|
Obx(() => AbsorbPointer(
|
||||||
absorbing: controller.isVacationDeactivated,
|
absorbing: controller.isVacationDeactivated,
|
||||||
child: Opacity(
|
child: Opacity(
|
||||||
@@ -251,7 +223,16 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Container(
|
Container(
|
||||||
padding: const EdgeInsets.only(top: 22),
|
padding: EdgeInsets.only(
|
||||||
|
top: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? 24
|
||||||
|
: 22,
|
||||||
|
bottom: controller.responsiveUtils.isScreenWithShortestSide(context)
|
||||||
|
? PlatformInfo.isMobile
|
||||||
|
? 64
|
||||||
|
: 24
|
||||||
|
: 0,
|
||||||
|
),
|
||||||
constraints: const BoxConstraints(maxWidth: 660),
|
constraints: const BoxConstraints(maxWidth: 660),
|
||||||
child: VacationListActionWidget(
|
child: VacationListActionWidget(
|
||||||
onCancelButtonAction: () {
|
onCancelButtonAction: () {
|
||||||
@@ -269,51 +250,53 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (PlatformInfo.isWeb) {
|
final vacationView = SettingDetailViewBuilder(
|
||||||
return SettingDetailViewBuilder(
|
responsiveUtils: controller.responsiveUtils,
|
||||||
responsiveUtils: controller.responsiveUtils,
|
child: Container(
|
||||||
child: Container(
|
color: SettingsUtils.getContentBackgroundColor(
|
||||||
color: SettingsUtils.getContentBackgroundColor(
|
context,
|
||||||
context,
|
controller.responsiveUtils,
|
||||||
controller.responsiveUtils,
|
|
||||||
),
|
|
||||||
decoration: SettingsUtils.getBoxDecorationForContent(
|
|
||||||
context,
|
|
||||||
controller.responsiveUtils,
|
|
||||||
),
|
|
||||||
width: double.infinity,
|
|
||||||
padding: controller.responsiveUtils.isDesktop(context)
|
|
||||||
? const EdgeInsetsDirectional.only(
|
|
||||||
top: 30,
|
|
||||||
start: 22,
|
|
||||||
)
|
|
||||||
: null,
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
if (controller.responsiveUtils.isWebDesktop(context))
|
|
||||||
SettingHeaderWidget(
|
|
||||||
menuItem: AccountMenuItem.vacation,
|
|
||||||
textStyle: ThemeUtils.textStyleInter600().copyWith(
|
|
||||||
color: Colors.black.withValues(alpha: 0.9),
|
|
||||||
),
|
|
||||||
padding: const EdgeInsetsDirectional.only(bottom: 16, end: 22),
|
|
||||||
)
|
|
||||||
else
|
|
||||||
const SettingExplanationWidget(
|
|
||||||
menuItem: AccountMenuItem.vacation,
|
|
||||||
padding: EdgeInsetsDirectional.only(
|
|
||||||
start: 16,
|
|
||||||
end: 16,
|
|
||||||
bottom: 16,
|
|
||||||
),
|
|
||||||
isCenter: true,
|
|
||||||
),
|
|
||||||
Expanded(child: vacationInputForm),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
decoration: SettingsUtils.getBoxDecorationForContent(
|
||||||
|
context,
|
||||||
|
controller.responsiveUtils,
|
||||||
|
),
|
||||||
|
width: double.infinity,
|
||||||
|
padding: controller.responsiveUtils.isDesktop(context)
|
||||||
|
? const EdgeInsetsDirectional.only(
|
||||||
|
top: 30,
|
||||||
|
start: 22,
|
||||||
|
)
|
||||||
|
: null,
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
if (controller.responsiveUtils.isWebDesktop(context))
|
||||||
|
SettingHeaderWidget(
|
||||||
|
menuItem: AccountMenuItem.vacation,
|
||||||
|
textStyle: ThemeUtils.textStyleInter600().copyWith(
|
||||||
|
color: Colors.black.withValues(alpha: 0.9),
|
||||||
|
),
|
||||||
|
padding: const EdgeInsetsDirectional.only(bottom: 16, end: 22),
|
||||||
|
)
|
||||||
|
else
|
||||||
|
const SettingExplanationWidget(
|
||||||
|
menuItem: AccountMenuItem.vacation,
|
||||||
|
padding: EdgeInsetsDirectional.only(
|
||||||
|
start: 16,
|
||||||
|
end: 16,
|
||||||
|
bottom: 16,
|
||||||
|
),
|
||||||
|
isCenter: true,
|
||||||
|
),
|
||||||
|
Expanded(child: vacationInputForm),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (PlatformInfo.isWeb) {
|
||||||
|
return vacationView;
|
||||||
} else {
|
} else {
|
||||||
return ResponsiveWidget(
|
return ResponsiveWidget(
|
||||||
responsiveUtils: controller.responsiveUtils,
|
responsiveUtils: controller.responsiveUtils,
|
||||||
@@ -347,7 +330,8 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
top: false,
|
top: false,
|
||||||
bottom: false,
|
bottom: false,
|
||||||
child: vacationInputForm),
|
child: vacationView,
|
||||||
|
),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -378,7 +362,7 @@ class VacationView extends GetWidget<VacationController> {
|
|||||||
height: double.infinity,
|
height: double.infinity,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||||
child: vacationInputForm,
|
child: vacationView,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user