refactor: update AttireRepositoryImpl to use constructor injection, reorganize profile sections by moving documents and adding certificates, and introduce new UI icons.

This commit is contained in:
Achintha Isuru
2026-02-27 02:00:51 -05:00
parent 2b879158c7
commit f32bd81a46
7 changed files with 53 additions and 20 deletions

View File

@@ -21,7 +21,9 @@ class ComplianceSection extends StatelessWidget {
@override
Widget build(BuildContext context) {
final TranslationsStaffProfileEn i18n = Translations.of(context).staff.profile;
final TranslationsStaffProfileEn i18n = Translations.of(
context,
).staff.profile;
return BlocBuilder<ProfileCubit, ProfileState>(
builder: (BuildContext context, ProfileState state) {
@@ -33,11 +35,21 @@ class ComplianceSection extends StatelessWidget {
crossAxisCount: 3,
children: <Widget>[
ProfileMenuItem(
icon: UiIcons.file,
icon: UiIcons.circleDollar,
label: i18n.menu_items.tax_forms,
completed: state.taxFormsComplete,
onTap: () => Modular.to.toTaxForms(),
),
ProfileMenuItem(
icon: UiIcons.file,
label: i18n.menu_items.documents,
onTap: () => Modular.to.toDocuments(),
),
ProfileMenuItem(
icon: UiIcons.certificate,
label: i18n.menu_items.certificates,
onTap: () => Modular.to.toCertificates(),
),
],
),
],

View File

@@ -56,11 +56,6 @@ class OnboardingSection extends StatelessWidget {
label: i18n.menu_items.attire,
onTap: () => Modular.to.toAttire(),
),
ProfileMenuItem(
icon: UiIcons.file,
label: i18n.menu_items.documents,
onTap: () => Modular.to.toDocuments(),
),
],
),
],