profileItems top-level property
A list of Widgets that holds profile items to be displayed in the user_profile_page They are displayed as tiles which when tapped navigate the user to the specif profile item's page This allows users to change settings, manage accounts and view terms & conditions
Implementation
List<ProfileItem> profileItems = <ProfileItem>[
ProfileItem(
text: contactInfo,
section: ProfileItemType.account,
onTapRoute: profileContactDetailsRoute,
tabletWidget: BuildContactProvider(),
),
ProfileItem(
text: communicationSettingsText,
section: ProfileItemType.account,
onTapRoute: communicationSettingsRoute,
tabletWidget: BuildCommunicationItems(),
),
const ProfileItem(
text: changePINText,
section: ProfileItemType.account,
onTapRoute: pinVerificationRoute,
onTapRouteArguments: PinVerificationType.pinChange),
const ProfileItem(
text: termsOfServiceText,
section: ProfileItemType.legal,
onTapRoute: termsAndConditionsRoute,
),
];