pull_down_button icon indicating copy to clipboard operation
pull_down_button copied to clipboard

How to make the background color no blur with pure color?

Open lucasjinreal opened this issue 1 year ago • 3 comments

How to make the background color no blur with pure color?

lucasjinreal avatar Jan 21 '24 01:01 lucasjinreal

Hi @lucasjinreal

The only way to remove blur from the menu background is by providing a fully opaque color to PullDownMenuRouteTheme.backgroundColor.

notDmDrl avatar Jan 21 '24 09:01 notDmDrl

@notDmDrl thanks, is there a way to remove the divider (tiny one) and make the icon and text reverse position? Icon on the front in row.

lucasjinreal avatar Jan 21 '24 12:01 lucasjinreal

@lucasjinreal

As of version 0.9.0, small dividers are inserted automatically. This was done to match the default behavior in SwiftUI Menu API (in SwiftUI only big dividers are inserted manually), so unfortunately, it is impossible. It is, however, possible to manually control small divider placement in menus in versions before 0.9.0.

Icon and text in reverse position are not in iOS guidelines, so there is no way to do so by default. You can try to create your custom menu item based on existing code (here) with your specific design requirements.

notDmDrl avatar Jan 21 '24 13:01 notDmDrl