From bbe066d3a100fb428ed7c1ffe0174b280ba28820 Mon Sep 17 00:00:00 2001 From: Bogdan Luckyanchuk Date: Wed, 26 Nov 2025 16:58:16 +0300 Subject: [PATCH] fix: make EasyDialogsController mockable by removing final modifier (#45) --- CHANGELOG.md | 4 +++- lib/src/flutter_easy_dialogs.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab62aaa..d9c01c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ +## 4.0.6 +* **FIX:** Removed `final` modifier from `EasyDialogsController` class to enable mocking ([issue 45](https://github.com/feduke-nukem/flutter_easy_dialogs/issues/45)) + ## 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 * **FIX:** Fixed https://github.com/feduke-nukem/flutter_easy_dialogs/issues/38 diff --git a/lib/src/flutter_easy_dialogs.dart b/lib/src/flutter_easy_dialogs.dart index 8de1e6b..6e0b798 100644 --- a/lib/src/flutter_easy_dialogs.dart +++ b/lib/src/flutter_easy_dialogs.dart @@ -7,7 +7,7 @@ import 'package:flutter_easy_dialogs/src/core/widget/overlay_provider.dart'; /// {@category Migration guide from 2.x to 3.x} /// {@category FAQ} /// Wrapper for providing an easy use of different custom dialogs. -final class FlutterEasyDialogs extends StatelessWidget { +class FlutterEasyDialogs extends StatelessWidget { /// Child widget. final Widget child;