Skip to content

feat: implemented LUX meter #2733

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

Merged
merged 5 commits into from
Jun 13, 2025
Merged

Conversation

Yugesh-Kumar-S
Copy link
Collaborator

@Yugesh-Kumar-S Yugesh-Kumar-S commented Jun 10, 2025

Fixes #2731

Changes

  • Ported the lux meter instrument.
  • Created a custom gauge meter.
  • Adapted dark mode to lux meter

Screenshots / Recordings

Screen_recording_20250611_020636.mp4

Updated view
Screenshot_20250612-185443

Checklist:

  • No hard coding: I have used resources from strings.xml, dimens.xml and colors.xml without hard coding any value.
  • No end of file edits: No modifications done at end of resource files strings.xml, dimens.xml or colors.xml.
  • Code reformatting: I have reformatted code and fixed indentation in every file included in this pull request.
  • No extra space: My code does not contain any extra lines or extra spaces than the ones that are necessary.

Copy link

github-actions bot commented Jun 10, 2025

Copy link

sourcery-ai bot commented Jun 11, 2025

🧙 Sourcery is reviewing your pull request!


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@Yugesh-Kumar-S Yugesh-Kumar-S added flutter Status: Review Required Requested reviews from peers and maintainers labels Jun 12, 2025
@mariobehling mariobehling requested a review from marcnause June 12, 2025 08:41
@Yugesh-Kumar-S Yugesh-Kumar-S requested a review from AsCress June 13, 2025 11:20
@Yugesh-Kumar-S
Copy link
Collaborator Author

@AsCress I have changed the card view as suggested, please review it and merge if its good.

@AsCress
Copy link
Collaborator

AsCress commented Jun 13, 2025

Layout tweeks kept for later:

  1. Adjust the graph to be in the center.
  2. Fix rounded edges for the graph.

@AsCress AsCress merged commit 1169df0 into fossasia:flutter Jun 13, 2025
6 checks passed
Yugesh-Kumar-S added a commit to Yugesh-Kumar-S/pslab-android that referenced this pull request Jun 13, 2025
# This is the 1st commit message:

Implemented LUX meter

# This is the commit message #2:

added const

# This is the commit message fossasia#3:

Improved responsiveness and made reusable widgets

# This is the commit message fossasia#4:

renamed file

# This is the commit message fossasia#5:

Updated view as per PSLab

# This is the commit message fossasia#6:

Implemented sound meter

# This is the commit message fossasia#7:

feat: implemented LUX meter (fossasia#2733)

fix: handled theming for instrument screens (fossasia#2732)

chore(deps): bump org.jetbrains.kotlin.android in /android

Bumps [org.jetbrains.kotlin.android](https://github.com/JetBrains/kotlin) from 1.8.22 to 2.1.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](JetBrains/kotlin@v1.8.22...v2.1.21)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin.android
  dependency-version: 2.1.21
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Adjusted view

Changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flutter Status: Review Required Requested reviews from peers and maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lux Meter UI and real-time light measurement
2 participants