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": { "staff_profile_attire": {
"title": "Attire", "title": "Verify Attire",
"info_card": { "info_card": {
"title": "Your Wardrobe", "title": "Your Wardrobe",
"description": "Select the attire items you own. This helps us match you with shifts that fit 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": { "staff_profile_attire": {
"title": "Vestimenta", "title": "Verificar Vestimenta",
"info_card": { "info_card": {
"title": "Tu Vestuario", "title": "Tu Vestuario",
"description": "Selecciona los art\u00edculos de vestimenta que posees. Esto nos ayuda a asignarte turnos que se ajusten a 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, value: cubit,
child: Scaffold( child: Scaffold(
backgroundColor: UiColors.background, // FAFBFC backgroundColor: UiColors.background, // FAFBFC
appBar: AppBar( appBar: UiAppBar(
backgroundColor: UiColors.white, title: t.staff_profile_attire.title,
elevation: 0, showBackButton: true,
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,
),
bottom: PreferredSize( bottom: PreferredSize(
preferredSize: const Size.fromHeight(1.0), preferredSize: const Size.fromHeight(1.0),
child: Container(color: UiColors.border, height: 1.0), child: Container(color: UiColors.border, height: 1.0),
@@ -82,7 +74,8 @@ class AttirePage extends StatelessWidget {
const SizedBox(height: UiConstants.space6), const SizedBox(height: UiConstants.space6),
AttestationCheckbox( AttestationCheckbox(
isChecked: state.attestationChecked, isChecked: state.attestationChecked,
onChanged: (bool? val) => cubit.toggleAttestation(val ?? false), onChanged: (bool? val) =>
cubit.toggleAttestation(val ?? false),
), ),
const SizedBox(height: UiConstants.space20), const SizedBox(height: UiConstants.space20),
], ],