flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Enhance Flexibility: Allow Custom Widgets alongside Icons in SlidableAction

Open mohammedzizou opened this issue 2 years ago • 1 comments

The modification to the SlidableAction class allows it to accept either an icon (IconData) or any custom widget (Widget) as its leading element,ensuring more flexibility in design. Additionally, assertion checks were added to prevent both from being used simultaneously and to guarantee that at least one visual element is provided.

mohammedzizou avatar Jan 24 '24 02:01 mohammedzizou

This PR is definitely needed.

antonderevyanko avatar Feb 11 '24 16:02 antonderevyanko