Skip to content

Commit

Permalink
Fixed credentials not loaded error
Browse files Browse the repository at this point in the history
  • Loading branch information
amitash-217 committed Mar 5, 2023
1 parent e649b88 commit 49e529c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ void checkLoginStatus() {

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Services.loadCreds();
await _initializeHERESDK(); // initialise the HERE SDK
await Services.getPermissions(); // wait for permissions

Expand Down
2 changes: 1 addition & 1 deletion lib/services.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Services {
static bool flag = false;
static late List pathToBeShared;

static void loadCreds() async {
static Future<void> loadCreds() async {
//loading the .env file
await dotenv.load(fileName: "credentials.env");
}
Expand Down

0 comments on commit 49e529c

Please sign in to comment.