modular-ui icon indicating copy to clipboard operation
modular-ui copied to clipboard

📦FEAT: `MUICollapsibleButton` class

Open deepraj02 opened this issue 1 year ago • 4 comments
trafficstars

closes #89

Added MUICollapsibleButton on top of existing MUIPrimaryButton class keeping all it's parameters accessible

Video (Demo):

muicollapse

Example

MUICollapsibleButton(
            actionIcon:
                isCollapsible ? Icons.arrow_drop_up : Icons.arrow_drop_down,
            collapsibleChild: const CollapsibleUnit(),
            text: 'Collapsible Button',
            onPressed: () {
              isCollapsible = !isCollapsible;
            },
          ),


deepraj02 avatar Feb 11 '24 00:02 deepraj02

Please change the target branch to development from main

Utkarsh4517 avatar Feb 12 '24 22:02 Utkarsh4517

so do you want me to add a isCollapsible parameter to all the existing buttons which if true then we can perform the collapsible stuff

deepraj02 avatar Feb 15 '24 20:02 deepraj02

Yeah I guess that would also work.

Utkarsh4517 avatar Feb 15 '24 20:02 Utkarsh4517

how about creating a named constructor for collapsible part

eg:

AnyButton.collapsible()

something like this

deepraj02 avatar Mar 27 '24 08:03 deepraj02