fixed api keys formatted incorrectly

This commit is contained in:
Myzel394 2022-08-18 16:43:22 +02:00
parent 0a0e45bac2
commit 67d6435423
2 changed files with 22 additions and 31 deletions

View File

@ -3,9 +3,9 @@ import 'dart:convert';
// Encode keys to base64 to avoid simple bots from scraping them // Encode keys to base64 to avoid simple bots from scraping them
final SUPABASE_API_URL = String.fromCharCodes( final SUPABASE_API_URL = String.fromCharCodes(
base64.decode( base64.decode(
'aHR0cHM6Ly9nbXF6ZWx' + '2YXVxeml1cmxsb2F3Yi5zdXBhYmFzZS5jbwo=', 'aHR0cHM6Ly9nbXF6ZWx2YXVxeml' + '1cmxsb2F3Yi5zdXBhYmFzZS5jbwo=',
), ),
); ).trim();
final SUPABASE_API_KEY = String.fromCharCodes( final SUPABASE_API_KEY = String.fromCharCodes(
base64.decode( base64.decode(
'ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnBjM01pT2lKemRYQmhZbUZ6' + 'ZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SnBjM01pT2lKemRYQmhZbUZ6' +
@ -13,7 +13,7 @@ final SUPABASE_API_KEY = String.fromCharCodes(
'MjRpTENKcFlYUWlPakUyTmpBek9ERTVNRGNzSW1WNGNDSTZNVGszTlRrMU56a3dOMzAuRF85NjRF' + 'MjRpTENKcFlYUWlPakUyTmpBek9ERTVNRGNzSW1WNGNDSTZNVGszTlRrMU56a3dOMzAuRF85NjRF' +
'SWxEOVdSRm5HNk1XdFF0bUlnMDRlTUJiWmhJRUY3emwtLWJLdwo=', 'SWxEOVdSRm5HNk1XdFF0bUlnMDRlTUJiWmhJRUY3emwtLWJLdwo=',
), ),
); ).trim();
final PEXELS_API_KEY = String.fromCharCodes( final PEXELS_API_KEY = String.fromCharCodes(
base64.decode( base64.decode(
'NTYz' + 'NTYz' +
@ -23,4 +23,4 @@ final PEXELS_API_KEY = String.fromCharCodes(
'0MGU2NjkzNGNlMT' + '0MGU2NjkzNGNlMT' +
'kzNjdmZjA5NGU2NDMyM2IK', 'kzNjdmZjA5NGU2NDMyM2IK',
), ),
); ).trim();

View File

@ -42,34 +42,25 @@ class _WelcomeScreenState extends State<WelcomeScreen> {
body: Padding( body: Padding(
padding: const EdgeInsets.symmetric(vertical: MEDIUM_SPACE), padding: const EdgeInsets.symmetric(vertical: MEDIUM_SPACE),
child: Center( child: Center(
child: PageView.builder( child: PageView(
itemBuilder: (context, index) { controller: controller,
switch (index) { children: <Widget>[
case 0: InitialPage(
return InitialPage(
onNextPage: nextPage, onNextPage: nextPage,
); ),
case 1: GuidePage(
return GuidePage(
onNextPage: nextPage, onNextPage: nextPage,
description: localizations description:
.welcomeScreenCreateMemoriesGuideDescription, localizations.welcomeScreenCreateMemoriesGuideDescription,
picture: 'assets/images/live_photo.svg', picture: 'assets/images/live_photo.svg',
); ),
case 2: GuidePage(
return GuidePage(
onNextPage: nextPage, onNextPage: nextPage,
description: description:
localizations.welcomeScreenViewMemoriesGuideDescription, localizations.welcomeScreenViewMemoriesGuideDescription,
); ),
case 3: const GetStartedPage(),
return const GetStartedPage(); ],
default:
return const SizedBox();
}
},
controller: controller,
itemCount: 4,
), ),
), ),
), ),