Skip to content

Commit

Permalink
key from env
Browse files Browse the repository at this point in the history
  • Loading branch information
matanshukry committed Aug 17, 2024
1 parent f016f41 commit cc2abce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flutter_google_places_sdk/example/lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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="<api_key>"
const INITIAL_API_KEY = String.fromEnvironment('API_KEY');

/// Initial value that is used for the locale
const INITIAL_LOCALE = Locale('en');

0 comments on commit cc2abce

Please sign in to comment.