Getting + setting up project in local repo:
- clone the repo into your local workspace
- in your terminal, navigate to virtual-pet/front-end/virtual_pet
- run flutter pub get to install all project libraries
⚠️
- make sure you have the VSCode flutter extension installed
- flutter itself is setup in your computer
- go to main.dart
- there should be a Run button above void main()
- If you have a mac, click enable macos when a popup appears after clicking Run
- If you have windows, click enable android
- If you select the wrong option, delete the generated windows/web/macos/ios/android folder and try again from step 1
- go back to main.dart and click the Run button above void main()
- be sure to run
git pull
while onmain
to get the latest code - then run
git checkout -b <your-branch-name-here>
to switch to a new branch - make your changes on this new branch
- once you are done making your changes, be sure to run
flutter analyze
to lint your code and fix any linting errors - commit any changes made from fixing any linting errors
- switch back to
main
to get any new changes that occurred while you were working on your changes - switch back to
<your-branch-name-here>
and rungit rebase main
- push your branch to GitHub
- open a pull request and assign two people to review your work