Skip to content

🐛 Make ThemeData properly wraps the content #303

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 3 commits into from
May 13, 2025
Merged

Conversation

AlexV525
Copy link
Member

This PR also makes build widget methods' signatures consistent.

@AlexV525 AlexV525 requested a review from Copilot May 13, 2025 13:43
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that ThemeData is correctly applied around key widget content and standardizes build method signatures across camera picker components.

  • Expose and forward a Key in pushToViewer to improve widget identifiability
  • Wrap viewer content in a Theme and replace scattered theme variable usage with Theme.of(context)
  • Convert positional builder methods to named parameters and allow a nullable focus color

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
lib/src/widgets/camera_picker_viewer.dart Added an optional Key parameter to pushToViewer and forwarded it
lib/src/widgets/camera_picker.dart Suppressed the deprecated indicatorColor warning
lib/src/widgets/camera_focus_point.dart Made color nullable and conditionalized paint.color assignment
lib/src/states/camera_picker_viewer_state.dart Wrapped preview material in a Theme/Builder, updated theme access
lib/src/states/camera_picker_state.dart Refactored many buildXxx methods to named parameters and nested theming, plus added an AnnotatedRegion

@AlexV525 AlexV525 merged commit bd65231 into main May 13, 2025
4 checks passed
@AlexV525 AlexV525 deleted the feat/context-theme branch May 13, 2025 13:54
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.

1 participant