alorma/Compose-Settings

SettingsList not taking full width

Closed this issue · 6 comments

Can't figure out why this is.

Example:

Screenshot_2022-12-20-10-53-58-164_com jerboa

Code:

Column {
  SettingsList(...)
  SettingsSlider(...)
}

2022-12-20 18 03 34

It's working here.

Maybe you have to add Modifier.fillMaxWidth() ?

Captura de Pantalla 2022-12-20 a las 18 04 46

Anyway, that extra "space" on the right is because of action param, that you can use to add a custom icon (or text, or whatever) as a separate actionable item

I'm confused... action should just be the action that's performed when you make a new selection right? Why would that need to be a composable thing like a button? For a settings list, all you care about is the dialog with your list options, I don't see why it needs a 2nd icon.

Screenshot_20221221-181121.png

Check this example from bluethoot settings.

Action here is the gear part of the settings tile, so you can have different parts, main setting and secondary

Where is that example code?

You can check the app sample, and there check on MenuLinks