use .env for key instead of hardcoding (and rotate key)
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
|
||||
class Debouncer {
|
||||
final int milliseconds;
|
||||
@@ -17,3 +19,7 @@ class Debouncer {
|
||||
_timer?.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
String getGooglePlacesApiKey() {
|
||||
return dotenv.env['GMS_API_KEY'] ?? Platform.environment['GMS_API_KEY'] ?? "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user