Currently, the WoltModalType class within our package supports a limited array of modal types, specifically bottom sheets and dialogues. While these modal types serve many common use cases, they fall short when more specialized UX designs and interactions are required. Developers often need to implement custom modals that are not only functionally diverse but also seamlessly integrate with existing design systems.
Problem Statement
The existing limitation in the variety of supported modal types and demand for a more flexible modal system that can accommodate a broader range of UI patterns.
Proposed Feature: Customizable Modal Framework
I propose enhancing the WoltModalType class to support the creation and integration of custom modal types. This enhancement would significantly broaden the package's utility, allowing developers to easily implement unique and complex UI patterns.
Feature Description
The introduction of a customizable modal framework would include:
Base Custom Modal Class: A base class that provides core functionalities such as animations, positioning, and layout mechanisms. This class would serve as the template from which all specific modal types are derived.
Extendible Default Modals: The package should include three fundamental modal types—bottom sheet, dialog, and side sheet. These should be implemented as extensions of the base custom modal class, allowing for straightforward customization. -
Developers could modify aspects such as layout, positioning, and transition animations or build entirely new modal types from scratch by extending the WoltModalType class.
Background
Currently, the
WoltModalType
class within our package supports a limited array of modal types, specifically bottom sheets and dialogues. While these modal types serve many common use cases, they fall short when more specialized UX designs and interactions are required. Developers often need to implement custom modals that are not only functionally diverse but also seamlessly integrate with existing design systems.Problem Statement
The existing limitation in the variety of supported modal types and demand for a more flexible modal system that can accommodate a broader range of UI patterns.
Proposed Feature: Customizable Modal Framework
I propose enhancing the WoltModalType class to support the creation and integration of custom modal types. This enhancement would significantly broaden the package's utility, allowing developers to easily implement unique and complex UI patterns.
Feature Description
The introduction of a customizable modal framework would include:
Issues Related
Issues related to this feature is labeled with Custom Modal Type
Task list
Example