Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera Feature (WIP) #170

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Camera Feature (WIP) #170

wants to merge 2 commits into from

Conversation

cathli66
Copy link
Contributor

Summary

This pull request is the first step towards implementing the camera and photo taking feature after a user has completed a challenge.

  • Connect UI with camera
  • Button to take picture and display on the frontend page

Remaining TODOs:

  • Finish UI from Figma
  • Backend support for images
  • Connect page with backend: sending image file path to backend to store

Test Plan

Notes

Blockers

Breaking Changes

  • Database schema change: adding support for user photos (still in the works, not pushed yet)

@cathli66 cathli66 changed the title Cl893/photos Camera Feature Mar 11, 2024
Copy link
Collaborator

@neketka neketka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid start, some minor changes requested

});
}

toggleCamera() async {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a return type here Future<...> otherwise this returns dynamic

fontWeight: FontWeight.w700,
),
),
imagePath == ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you can use a better state here instead of imagePath == "". It's confusing to see why an empty image path means we have a camera preview. If you plan to keep this, please add a comment explaining why you make this comparison.

@neketka neketka changed the title Camera Feature Camera Feature (WIP) Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants