refactor: replace AttirePage's AppBar with UiAppBar and update attire page title localization.
This commit is contained in:
@@ -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),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user