Skip to content

Make error injectable and cleanup not needed code.#840

Open
polina-c wants to merge 28 commits intoflutter:mainfrom
polina-c:inject-error
Open

Make error injectable and cleanup not needed code.#840
polina-c wants to merge 28 commits intoflutter:mainfrom
polina-c:inject-error

Conversation

@polina-c
Copy link
Copy Markdown
Collaborator

@polina-c polina-c commented Mar 30, 2026

Contributes to #834

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request performs a significant refactoring of the ui_primitives package, removing several legacy foundation files and consolidating core types and error reporting into new error_reporter.dart and primitives.dart files. The existing UiError system is replaced by a new FrameworkErrorReporter architecture, and core classes like ChangeNotifier and ValueNotifier have been updated to use this new reporter. Review feedback suggests that FrameworkErrorDetails should be a plain data class rather than extending Error, and identifies a duplicate copyright header in the new primitives file.

@polina-c polina-c marked this pull request as ready for review March 30, 2026 16:32
@polina-c polina-c requested a review from ditman March 30, 2026 16:32
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