refactor(sf_shared): add help center URL to BrandLinks
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user