Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable sort feature #57

Open
richanshah opened this issue Nov 7, 2024 · 5 comments
Open

disable sort feature #57

richanshah opened this issue Nov 7, 2024 · 5 comments

Comments

@richanshah
Copy link

In my music app, I currently use this setup for managing collections and playlists. There's a sorting feature in the UI that’s visible but not functioning as expected. I’d like to either make the sorting functionality work or hide the sort option until it’s fully implemented.

Could you provide guidance on how best to approach this?

@richanshah
Copy link
Author

i have music app where in ios carplay using flutter_carplay plugin but it is showing a-z sorting option which is not working and there is no callback as well, i want to either hide it or i wanrt to make irt work, any idea how can i achive this

@richanshah
Copy link
Author

I’m building a music app in Flutter, and I’m using the flutter_carplay plugin to integrate iOS CarPlay functionality. On the CarPlay interface, there’s an "A-Z" sorting option that’s displayed on the home page screen, which is intended for alphabetical selection of collections or playlists.

However, this A-Z sorting option is currently non-functional:

There’s no callback available in the plugin for handling this option. I’d like to either make the sorting functional or hide the option entirely if it can’t be used. Here’s what I’ve tried so far:

Checked the flutter_carplay documentation, but didn’t find any built-in support for alphabetical sorting callbacks. Looked into hiding this option but couldn’t find any configuration for it in the Flutter API. Question:

Does anyone know how to add a callback to the A-Z sorting option in CarPlay with flutter_carplay? If adding a callback isn’t possible, is there a way to hide this option on the CarPlay screen? Any guidance on where to modify the plugin code to add this functionality or hide the option would be greatly appreciated! Thanks!

@popeyelau
Copy link

@richanshah

let listSection = CPListSection.init(items: items, header: header, sectionIndexTitle: header)

change sectionIndexTitle to nil

    let listSection = CPListSection.init(items: items, header: header, sectionIndexTitle: nil)

@richanshah
Copy link
Author

thanks @popeyelau , it works for me:)

@richanshah
Copy link
Author

as per my latest requirement i have to enable this feature but sorting doest not work , if any ios developer can review the code and let me know

@richanshah richanshah reopened this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants