File tree 3 files changed +7
-7
lines changed
feature/data/datasource/news
test/feature/data/datasource/news
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
class ConstantConfig {
2
- final String apiKeyNewsApi = '3f1bdb0927c94f8da5708f7a36f7d06f' ;
2
+ final String keyNewsApi = '3f1bdb0927c94f8da5708f7a36f7d06f' ;
3
3
}
Original file line number Diff line number Diff line change @@ -32,15 +32,15 @@ class NewsRemoteDataSourceImpl implements NewsRemoteDataSource {
32
32
'/v2/top-headlines' ,
33
33
queryParameters: {
34
34
'country' : 'id' ,
35
- 'apiKey' : constantConfig.apiKeyNewsApi ,
35
+ 'apiKey' : constantConfig.keyNewsApi ,
36
36
},
37
37
);
38
38
} else {
39
39
response = await dio.get (
40
40
'/v2/top-headlines' ,
41
41
queryParameters: {
42
42
'country' : 'id' ,
43
- 'apiKey' : constantConfig.apiKeyNewsApi ,
43
+ 'apiKey' : constantConfig.keyNewsApi ,
44
44
'category' : category,
45
45
},
46
46
);
@@ -58,7 +58,7 @@ class NewsRemoteDataSourceImpl implements NewsRemoteDataSource {
58
58
'/v2/top-headlines' ,
59
59
queryParameters: {
60
60
'country' : 'id' ,
61
- 'apiKey' : constantConfig.apiKeyNewsApi ,
61
+ 'apiKey' : constantConfig.keyNewsApi ,
62
62
'q' : keyword,
63
63
},
64
64
);
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ void main() {
75
75
'/v2/top-headlines' ,
76
76
queryParameters: {
77
77
'country' : 'id' ,
78
- 'apiKey' : constantConfig.apiKeyNewsApi ,
78
+ 'apiKey' : constantConfig.keyNewsApi ,
79
79
},
80
80
),
81
81
);
@@ -98,7 +98,7 @@ void main() {
98
98
queryParameters: {
99
99
'category' : tCategory,
100
100
'country' : 'id' ,
101
- 'apiKey' : constantConfig.apiKeyNewsApi ,
101
+ 'apiKey' : constantConfig.keyNewsApi ,
102
102
},
103
103
),
104
104
);
@@ -174,7 +174,7 @@ void main() {
174
174
'/v2/top-headlines' ,
175
175
queryParameters: {
176
176
'country' : 'id' ,
177
- 'apiKey' : constantConfig.apiKeyNewsApi ,
177
+ 'apiKey' : constantConfig.keyNewsApi ,
178
178
'q' : tKeyword,
179
179
},
180
180
),
You can’t perform that action at this time.
0 commit comments