modular-ui
modular-ui copied to clipboard
📦FEAT: `MUICollapsibleButton` class
trafficstars
closes #89
Added MUICollapsibleButton on top of existing MUIPrimaryButton class keeping all it's parameters accessible
Video (Demo):
Example
MUICollapsibleButton(
actionIcon:
isCollapsible ? Icons.arrow_drop_up : Icons.arrow_drop_down,
collapsibleChild: const CollapsibleUnit(),
text: 'Collapsible Button',
onPressed: () {
isCollapsible = !isCollapsible;
},
),
Please change the target branch to development from main
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
Yeah I guess that would also work.
how about creating a named constructor for collapsible part
eg:
AnyButton.collapsible()
something like this