-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a4da88
commit 19bfa38
Showing
14 changed files
with
145 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[ | ||
"coca cola", | ||
"coca-cola", | ||
"fanta", | ||
"sprite", | ||
"pepsi", | ||
"red bull", | ||
"miranda", | ||
"nestlé", | ||
"lipton", | ||
"nutella", | ||
"kitkat", | ||
"twix", | ||
"kat", | ||
"nesquik", | ||
"carrefour", | ||
"tang", | ||
"milka", | ||
"oreo", | ||
"bounty", | ||
"snickers", | ||
"mars", | ||
"galaxy", | ||
"m&m's", | ||
"danone", | ||
"nescafé", | ||
"knorr", | ||
"flakes", | ||
"ariel", | ||
"gillette", | ||
"rexona", | ||
"axe", | ||
"l'oreal", | ||
"pringles", | ||
"doritos", | ||
"cheetos", | ||
"lay's", | ||
"signal", | ||
"sensodyne", | ||
"oral-b", | ||
"colgate", | ||
"crest", | ||
"sunsilk", | ||
"nivea", | ||
"pantene", | ||
"lux", | ||
"dove", | ||
"vansih", | ||
"always", | ||
"dettol", | ||
"schwarzkopf", | ||
"palmolive", | ||
"fairy", | ||
"pril", | ||
"persil", | ||
"tide", | ||
"omo", | ||
"shoulders", | ||
"finish", | ||
"vaseline", | ||
"unilever", | ||
"johnson's" | ||
] |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import 'package:dio/dio.dart'; | ||
import 'package:qataa/utils/constants/api_constants.dart'; | ||
|
||
class BoycottDataSource { | ||
final dio = Dio() | ||
..options.connectTimeout = const Duration(seconds: 10) | ||
..options.receiveTimeout = const Duration(seconds: 10); | ||
|
||
Future<Response> fetchBoycottList() async { | ||
return await dio.get( | ||
kBoycottListEndpoint, | ||
options: Options( | ||
validateStatus: (status) { | ||
return status == 200; | ||
}, | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
const String kBarcodeEndpoint = 'https://barcodes1.p.rapidapi.com/'; | ||
const String kXRapidAPIKey = '90d54432aemshc7c7ea49bc042bbp15f633jsnab53706180b9'; | ||
const String kXRapidAPIHost = 'barcodes1.p.rapidapi.com'; | ||
const String kBoycottListEndpoint = 'https://raw.githubusercontent.com/Zied-Dahmani/qataa/main/assets/boycott_list.json'; | ||
|
||
|