refactor(sf_shared): add help center URL to BrandLinks

This commit is contained in:
2026-04-21 23:33:12 +02:00
parent dd1617939b
commit b8ac786146
3 changed files with 6 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ Future<void> setupFirebase(EnvironmentEnum env) async {
BrandLinksKeys.privacyPolicyUrl:
'https://savefamilygps.com/pages/politica-de-privacidad-reloj-gps-infantil-localizador-savefamily',
BrandLinksKeys.corporateWebsiteUrl: 'https://www.savefamilygps.com/',
BrandLinksKeys.helpCenterUrl: 'https://savefamilygpshelp.zendesk.com/hc/es',
BrandLinksKeys.supportEmail: 'info@savefamilygps.com',
});
try {

View File

@@ -51,9 +51,7 @@ class CustomerServiceScreen extends ConsumerWidget {
SizedBox(height: SizeUtils.getByScreen(small: 10, big: 9)),
SectionButton(
onPressed: () async {
final Uri url = Uri.parse(
'https://savefamilygpshelp.zendesk.com/hc/es',
);
final Uri url = Uri.parse(BrandLinks.helpCenter);
if (!await launchUrl(url)) {
throw Exception('Could not launch $url');
}

View File

@@ -5,6 +5,7 @@ class BrandLinksKeys {
static const privacyPolicyUrl = 'privacy_policy_url';
static const corporateWebsiteUrl = 'corporate_website_url';
static const helpCenterUrl = 'help_center_url';
static const supportEmail = 'support_email';
}
@@ -17,6 +18,9 @@ class BrandLinks {
static String get corporateWebsite => FirebaseRemoteConfig.instance
.getString(BrandLinksKeys.corporateWebsiteUrl);
static String get helpCenter =>
FirebaseRemoteConfig.instance.getString(BrandLinksKeys.helpCenterUrl);
static String get supportEmail =>
FirebaseRemoteConfig.instance.getString(BrandLinksKeys.supportEmail);
}