Skip to content

Commit e66eaaf

Browse files
authored
Remove API key
Remove API key and change it to YOUR_API_KEY
1 parent 3e7c619 commit e66eaaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/api/api_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:flutter_news_app/src/model/topheadlinesnews/response_top_headlin
44
class ApiProvider {
55
final Dio _dio = Dio();
66
final String _baseUrl =
7-
'https://newsapi.org/v2/top-headlines?country=id&apiKey=fc14ae62fff14511a901ad9537987354';
7+
'https://newsapi.org/v2/top-headlines?country=id&apiKey=YOUR_API_KEY';
88

99
void printOutError(error, StackTrace stacktrace) {
1010
print('Exception occured: $error with stacktrace: $stacktrace');

0 commit comments

Comments
 (0)