### Install Flutter SDK using FVM Source: https://github.com/simonoppowa/opennutritracker/blob/main/GettingStarted.md Command to install the Flutter SDK version pinned by FVM in the project. ```sh fvm install ``` -------------------------------- ### Get Dependencies Source: https://github.com/simonoppowa/opennutritracker/blob/main/GettingStarted.md Command to fetch project dependencies. ```sh flutter pub get ``` -------------------------------- ### Run Build Runner Source: https://github.com/simonoppowa/opennutritracker/blob/main/GettingStarted.md Command to run the build runner to generate necessary files. ```sh dart run build_runner build ``` -------------------------------- ### Environment Variables Setup Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md Example of environment variables to be set in the .env file. ```env FDC_API_KEY="YOUR_KEY" # USDA Food Data Central API key (direct FDC source, not actively used in UI) SENTRY_DNS="DNS_URL" SUPABASE_PROJECT_URL="PROJECT_URL" SUPABASE_PROJECT_ANON_KEY="ANON_KEY" ``` -------------------------------- ### Clone the Repository Source: https://github.com/simonoppowa/opennutritracker/blob/main/GettingStarted.md Command to clone the OpenNutriTracker repository into the current folder. ```sh git clone https://github.com/simonoppowa/OpenNutriTracker.git . ``` -------------------------------- ### Configure Android SDK Path for Flutter Source: https://github.com/simonoppowa/opennutritracker/blob/main/GettingStarted.md Command to set the Android SDK path for Flutter. ```sh flutter config --android-sdk "e:\path\to\androidSDK" ``` -------------------------------- ### Commit message examples Source: https://github.com/simonoppowa/opennutritracker/blob/main/CONTRIBUTING.md Examples of commit messages following the recommended format with type and scope prefixes. ```sh feat(activity): add high-intensity interval exercise fix(home): correct kcal budget after onboarding i18n(activity): wire HIIT codes 02210/02214 to translated strings ``` -------------------------------- ### Run static analysis Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md Command to perform static code analysis. ```sh flutter analyze ``` -------------------------------- ### Fixing stale build cache Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md Commands to resolve PackageNotFoundException: hive by clearing the build cache. ```sh rm -rf .dart_tool/build dart run build_runner build ``` -------------------------------- ### Run a single test file Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md Command to execute a specific test file. ```sh flutter test test/unit_test/tdee_calc_test.dart ``` -------------------------------- ### Create a feature branch from develop Source: https://github.com/simonoppowa/opennutritracker/blob/main/CONTRIBUTING.md Command to fetch the latest changes from origin and create a new feature branch based on the develop branch. ```sh git fetch origin git checkout -b feature/ origin/develop ``` -------------------------------- ### Common Tasks with justfile Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md Commands available in the justfile for common development tasks. ```sh just install # flutter pub get just build # dart run build_runner build --delete-conflicting-outputs just format # dart format ./lib/core ./lib/features ./lib/l10n ./test just test # flutter test just check_intl # verify generated intl files are up to date (used in CI) just ci # full CI: install, format check, intl check, build, analyze, test ``` -------------------------------- ### Directory Structure Source: https://github.com/simonoppowa/opennutritracker/blob/main/CLAUDE.md The directory structure of the lib/ folder in the OpenNutriTracker project. ```tree lib/ core/ data/ data_source/ dbo/ repository/ domain/ entity/ usecase/ presentation/ main_screen.dart widgets/ styles/ utils/ features/ home/ diary/ profile/ add_meal/ meal_detail/ edit_meal/ scanner/ add_activity/ activity_detail/ settings/ onboarding/ generated/ l10n/ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.