diff --git a/flutter_google_places_sdk/example/lib/constants.dart b/flutter_google_places_sdk/example/lib/constants.dart index d8c2d50..1e3949f 100644 --- a/flutter_google_places_sdk/example/lib/constants.dart +++ b/flutter_google_places_sdk/example/lib/constants.dart @@ -2,9 +2,9 @@ library constants; import 'package:flutter/material.dart'; -/// note: do NOT store your api key in here or in the code at all. -/// use an external source such as file or firebase remote config -const INITIAL_API_KEY = ''; +/// Define your api in run args, such as +/// --dart-define API_KEY="" +const INITIAL_API_KEY = String.fromEnvironment('API_KEY'); /// Initial value that is used for the locale const INITIAL_LOCALE = Locale('en'); \ No newline at end of file