qskinny icon indicating copy to clipboard operation
qskinny copied to clipboard

QskSegmentedBar indicator

Open uwerat opened this issue 1 year ago • 0 comments

In certain skins ( f.e M3 ) an indicator ( f.e a check mark ) is displayed inside the selected segment.

The current implementation simply replaces the icon by the indicator, what is correct for segments, that have a text. However when there is no text the indicator has to be displayed above ( vertical ) or left ( horizontal ) of the icon.

https://api.flutter.dev/flutter/material/SegmentedButton/showSelectedIcon.html

Whether to display an indicator is currently decided in the skin ( by providing an icon for "Graphic | Selected ". A probably better solution would be to introduce a property to control the behavior explicitly. This requires that every skin is providing a default symbol.

uwerat avatar Mar 08 '23 07:03 uwerat