A flutter app, which scans any barcode and tells you their suitability
PickyPal
Welcome to the PickyPal GitHub repo!
PickyPal is a convenient and easy-to-use food scanning app that allows you to scan any barcode and instantly see if the product is suitable for your dietary needs. Whether you have allergies to gluten, nuts, soy, or lactose, or you follow a vegetarian, vegan, or palm-oil-free diet, PickyPal has got you covered.
Screenshots
Getting Started
To get started, simply clone the repo and follow the instructions in the README file. We recommend using the latest version of Android Studio to build and run the app.
Contributions
We’re always working to improve the app and make it more useful for our users, so we welcome contributions from the community. If you’re interested in contributing to the project, please follow the standard Git workflow:
- Fork the repo
- Create a new branch for your changes
- Make your changes and commit them
- Push your changes to your fork
- Create a pull request to the main repo
Issues
If you encounter any issues or have any questions, please don’t hesitate to open an issue on the repo. We’re always happy to help and appreciate any feedback that can help us improve the app.
Add a new allergy
Generate icon
- Visit (https://icons8.com/)[https://icons8.com/]
- Search for the icon you want to use
- Download it and convert it so (svg)[https://convertio.co/png-svg/]
- Make sure to rename the file to
{allergy}.svg
- Add the file to the
assets/images/allergies/png
andassets/images/allergies/svg
folders
- Turn the svgs into a font
- Visit (https://www.fluttericon.com/)[https://www.fluttericon.com/] and upload the svg files
- Download the font and add the ttf to fonts/ as Allergies.ttf
- Add the font to pubspec.yaml
flutter: fonts: - family: Allergies fonts: - asset: fonts/Allergies.ttf
- Replace the allergies_icons.dart file with the one generated by fluttericon
- Add the icon to the app
- Add the parameters to Allergy.dart
- Add a new factory method to Allergy.dart
- Add a new bool or enum YESMAYBENO to the Allergy class
- Add the allergy to the settings and UserPreferences
- Add the allergy to the settings page
- Add the allergy to the UserPreferences class
- Add the allergy to the product
- Add the allergy to the Product class
- Search for the allergy in (https://world.openfoodfacts.org/api/v2/product/{product})[https://world.openfoodfacts.org/api/v2/product/4088700093214] and get the right tags
- Add the language strings
- Add the allergy to the language strings in “lib/languages/app_en.arb”
- Add the allergy to the language strings in “lib/languages/app_de.arb”
- Run
flutter gen-l10n
to generate the new language strings - Check “lib/languages/untranslated.txt” for missing translations