woltapp / wolt_modal_sheet

This package provides a responsive modal with multiple pages, motion animation for page transitions, and scrollable content within each page.
MIT License
477 stars 63 forks source link

Bloc Provider Inaccessible at Modal Title Level in Decorator Pattern #295

Closed Albertbol closed 1 month ago

Albertbol commented 1 month ago

Bug report

Describe the bug After the recent changes in the wolt_modal_sheet repository, the Bloc provider is no longer accessible in the modal's title or other higher-level elements when using the new decorator pattern. This issue limits the ability to manage state or data directly in these components.

Steps to reproduce

Steps to reproduce the behavior:

Go to the project and update to the latest commit from the wolt_modal_sheet repository. Implement a Bloc provider in the modalDecorator to be used in a modal title. Attempt to access the Bloc within the title component. Observe that the Bloc is not accessible.

Expected behavior

The Bloc provider should be accessible in the modal's title and other higher-level components, allowing for consistent state management and data access throughout the modal.


Additional context

It worked before decorator re-work commit