-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from felipecastrosales/develop
Develop
- Loading branch information
Showing
91 changed files
with
1,585 additions
and
620 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# You can get these keys from https://www.google.com/recaptcha/admin | ||
RECAPTCHA_PUBLIC_KEY=your_public_key | ||
RECAPTCHA_SECRET_KEY=your_secret_key | ||
|
||
# Create your api key from AWS SES / API Gateway: | ||
# - https://aws.amazon.com/ses/; | ||
# - https://aws.amazon.com/api-gateway/ | ||
API_SEND_MAIL=your_api_send_mail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "site", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug" | ||
}, | ||
{ | ||
"name": "site (profile mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile" | ||
}, | ||
{ | ||
"name": "site (release mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'navigation_service.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class NavigationService { | ||
static final navigatorKey = GlobalKey<NavigatorState>(); | ||
static final navigatorKeyContext = navigatorKey.currentContext; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
import 'package:dio/dio.dart'; | ||
import 'package:firebase_remote_config/firebase_remote_config.dart'; | ||
import 'package:site/app/features/contact/contact.dart'; | ||
import 'package:get_it/get_it.dart'; | ||
import 'package:http/http.dart' as http; | ||
|
||
import 'package:site/data/repositories/contact/contact.dart'; | ||
import 'package:site/data/services/firebase/firebase.dart'; | ||
|
||
final getIt = GetIt.I; | ||
|
||
void configureDependencies() { | ||
if (!getIt.isRegistered<http.Client>()) { | ||
getIt.registerSingleton<http.Client>( | ||
http.Client(), | ||
if (!getIt.isRegistered<Dio>()) { | ||
getIt.registerSingleton<Dio>( | ||
Dio(), | ||
); | ||
} | ||
if (!getIt.isRegistered<FirebaseRemoteConfig>()) { | ||
getIt.registerSingleton<FirebaseRemoteConfig>( | ||
FirebaseRemoteConfig.instance, | ||
); | ||
} | ||
if (!getIt.isRegistered<FirebaseService>()) { | ||
getIt.registerSingleton<FirebaseService>( | ||
FirebaseServiceImpl(), | ||
); | ||
} | ||
if (!getIt.isRegistered<ContactRepository>()) { | ||
getIt.registerSingleton<ContactRepository>( | ||
ContactRepositoryImpl( | ||
firebaseRemoteConfig: getIt(), | ||
getIt.registerLazySingleton<ContactRepository>( | ||
() => ContactRepositoryImpl( | ||
httpClient: getIt(), | ||
), | ||
); | ||
} | ||
if (!getIt.isRegistered<ContactCubit>()) { | ||
getIt.registerFactory<ContactCubit>( | ||
() => ContactCubit( | ||
contactRepository: getIt(), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.