refactor: replace AttirePage's AppBar with UiAppBar and update attire page title localization.

This commit is contained in:
Achintha Isuru
2026-02-24 14:28:43 -05:00
parent cd51e8488c
commit 7744dbf1b3
3 changed files with 7 additions and 14 deletions

View File

@@ -1039,7 +1039,7 @@
}
},
"staff_profile_attire": {
"title": "Attire",
"title": "Verify Attire",
"info_card": {
"title": "Your Wardrobe",
"description": "Select the attire items you own. This helps us match you with shifts that fit your wardrobe."

View File

@@ -1039,7 +1039,7 @@
}
},
"staff_profile_attire": {
"title": "Vestimenta",
"title": "Verificar Vestimenta",
"info_card": {
"title": "Tu Vestuario",
"description": "Selecciona los art\u00edculos de vestimenta que posees. Esto nos ayuda a asignarte turnos que se ajusten a tu vestuario."

View File

@@ -23,17 +23,9 @@ class AttirePage extends StatelessWidget {
value: cubit,
child: Scaffold(
backgroundColor: UiColors.background, // FAFBFC
appBar: AppBar(
backgroundColor: UiColors.white,
elevation: 0,
leading: IconButton(
icon: const Icon(UiIcons.chevronLeft, color: UiColors.iconSecondary),
onPressed: () => Modular.to.pop(),
),
title: Text(
t.staff_profile_attire.title,
style: UiTypography.headline3m.textPrimary,
),
appBar: UiAppBar(
title: t.staff_profile_attire.title,
showBackButton: true,
bottom: PreferredSize(
preferredSize: const Size.fromHeight(1.0),
child: Container(color: UiColors.border, height: 1.0),
@@ -82,7 +74,8 @@ class AttirePage extends StatelessWidget {
const SizedBox(height: UiConstants.space6),
AttestationCheckbox(
isChecked: state.attestationChecked,
onChanged: (bool? val) => cubit.toggleAttestation(val ?? false),
onChanged: (bool? val) =>
cubit.toggleAttestation(val ?? false),
),
const SizedBox(height: UiConstants.space20),
],