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
444 stars 56 forks source link

Enhanced Flexibility with Custom Modal Types #231

Closed ulusoyca closed 1 month ago

ulusoyca commented 2 months ago

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

ulusoyca commented 1 month ago

Added in https://github.com/woltapp/wolt_modal_sheet/pull/235