A easy to use Flutter application designed to help users make informed decisions about food safety by checking ingredients, additives, and allergens in products.
- Barcode Scanning: Instantly scan product barcodes for quick identification
- Text Search: Search products by name or brand
- Recent Searches: Quick access to previously searched items
- Product Details: Comprehensive product information display
- Toxic Additive Detection: Identify harmful additives in products
- Safety Ratings: Clear safety indicators for each additive
- Detailed Information: Learn about specific additives and their effects
- Allergen Detection: Identify common allergens in products
- Side-by-Side Analysis: Compare multiple products simultaneously
Clean interface with quick actions and personalized greetings
Powerful search functionality with recent searches
Comprehensive product information and safety analysis
Detailed additive information and safety ratings
Allergen detection and safety warnings
Side-by-side product comparison for informed decisions
Track scanning history and usage analytics
- Framework: Flutter 3.x
- Language: Dart
- Local Storage: Hive (NoSQL database)
- Data Source: OpenFoodFacts API
- State Management: StatefulWidget with GlobalKey pattern
- Navigation: Bottom Navigation with IndexedStack
- Architecture: Clean separation of concerns with services layer
lib/
├── main.dart # App entry point
├── models/ # Data models
│ ├── product.dart
│ ├── scan_history.dart
│ └── toxic_additive.dart
├── pages/ # UI screens
│ ├── home_page.dart
│ ├── search_page.dart
│ ├── history_page.dart
│ ├── product_details_page.dart
│ ├── additive_search_page.dart
│ ├── allergen_check_page.dart
│ └── compare_products_page.dart
├── services/ # Business logic
│ ├── local_storage_service.dart
│ ├── product_service.dart
│ └── toxic_additive_service.dart
├── widgets/ # Reusable components
│ ├── scan_card.dart
│ └── quick_action_card.dart
└── theme/ # App theming
└── app_colors.dart
- Flutter SDK (3.0 or higher)
- Dart SDK
- Android Studio / VS Code
- iOS Simulator / Android Emulator
-
Clone the repository
git clone https://github.com/nikkhilpareek/ToxCheck.git cd ToxCheck -
Install dependencies
flutter pub get
-
Run the application
flutter run
Android APK:
flutter build apk --releaseiOS IPA:
flutter build ios --releaseThis app utilizes data from OpenFoodFacts, an open database of food products worldwide. We express our gratitude to the OpenFoodFacts community for their invaluable contribution to food transparency.
Data Disclaimer: The information provided in this app is sourced from OpenFoodFacts and should be used for informational purposes only. Always verify product information with official packaging and consult healthcare professionals for medical advice.
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Nikhil Pareek - @nikkhilpareek
- OpenFoodFacts for providing comprehensive food product data
- Flutter Team for the amazing framework