From 8a13799eab82342109c05d74e3725039b41989b4 Mon Sep 17 00:00:00 2001 From: Bogdan Luckyanchuk Date: Wed, 26 Nov 2025 14:54:28 +0300 Subject: [PATCH] feat: expose FlutterEasyDialogs.controller as public API (#42) --- CHANGELOG.md | 2 ++ lib/src/flutter_easy_dialogs.dart | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb626dd..ab62aaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ## 4.0.5 * **FEAT:** https://github.com/feduke-nukem/flutter_easy_dialogs/issues/40 +* **FEAT:** Made `FlutterEasyDialogs.controller` public API by removing `@visibleForTesting` annotation ([issue 42](https://github.com/feduke-nukem/flutter_easy_dialogs/issues/42)) + ## 4.0.4 * **FIX:** Fixed https://github.com/feduke-nukem/flutter_easy_dialogs/issues/37 diff --git a/lib/src/flutter_easy_dialogs.dart b/lib/src/flutter_easy_dialogs.dart index 02f9f35..8de1e6b 100644 --- a/lib/src/flutter_easy_dialogs.dart +++ b/lib/src/flutter_easy_dialogs.dart @@ -17,7 +17,6 @@ final class FlutterEasyDialogs extends StatelessWidget { super.key, }); - @visibleForTesting static EasyDialogsController get controller => OverlayProvider.stateKey.currentState!.controller;