Skip to content

Conversation

@Bogdan108
Copy link
Contributor

Status

READY

Breaking Changes

NO

Description

Removed @visibleForTesting annotation from FlutterEasyDialogs.controller getter to make it part of the public API.

Previously, the controller getter was marked as visible only for testing purposes. This limitation prevented developers from working with the controller directly and made it impossible to mock the controller in tests without accessing the internal singleton through FlutterEasyDialogs.

Changes:

  • Removed @visibleForTesting annotation from FlutterEasyDialogs.controller
  • Updated CHANGELOG.md with feature description

Resolves #42

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • 📝 Documentation
  • 🗑️ Chore

@feduke-nukem feduke-nukem merged commit db95ac3 into feduke-nukem:main Nov 26, 2025
1 check passed
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.

[Question]: Unable to Mock FlutterEasyDialogs in Unit Tests (Singleton Pattern Problem)

2 participants