Skip to content

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 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.

2 participants