-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added google geocoding to get city/state/country #83
base: designs_v1.1
Are you sure you want to change the base?
Conversation
lib/app_constants.dart
Outdated
@@ -10,6 +10,8 @@ class AppConstants { | |||
static const NOT_TESTED_FEEL_SICK = 4; | |||
static const NOT_TESTTED_NOT_SICK = 5; | |||
|
|||
static const API_KEY_GEOCODING = "put the api key here"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will move to .env I guess
lib/network/api_repository.dart
Outdated
static Map<String, dynamic> tokenRequestBody(String token, String deviceID, Location location) => | ||
{ | ||
"token": token, | ||
static Future<bool> getZIPCode(Location fromLocation) async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be renamed to something like checkLocationGate
@@ -162,3 +201,11 @@ class ApiRepository { | |||
await sharedPrefs.setBool(DID_ALLOW_NOTIFY_WHEN_AVAILABLE, shouldNotify); | |||
} | |||
} | |||
|
|||
class Triple<T extends String, S extends String, C extends String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice name 😅 How about LocationGateTriple
# Conflicts: # pubspec.lock # pubspec.yaml
Airtable API Integration, Also adds DotEnv for API Keys
No description provided.