-
Notifications
You must be signed in to change notification settings - Fork 133
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
Fix flutter_downloader and redesign the Menu #434
Conversation
The download callback stuff should be fixed in main, I need to rebase redesign but once that's done it should fix the callback. As for the design, I like the idea of a modal sheet. The current layout (in main) is getting a bit too big due to the amount of options |
@jmshrv yes was just not able to deploy without fixing it. Ok nice. Wasn´t that easy to implement it :) |
So should we go for the slide-up modal instead of the pop-over? I could adapt the current design to this style, but I'm not sure if we would gain a lot. The menu on the player page, with the added playback controls and (possibly) share button takes up a lot of space anyway. Also, @Y0ngg4n does this also convert the menu on the Now Playing view, or only in the song list? Because the menu for the Now Playing view is the important one for the beta :) |
@Chaphasilor i am not a big friend of modal dialogs. so in my opinion the bottom sheet is better. Currently this is only for the menu in the list view. but it is no big deal to implement it for the player view too. I am currently working on the queue but the bezier curve button at the bottom of your design is driving me crazy XD |
okay, no worries. You can leave out the curved shape for now, there were a lot of people who didn't really like it. Just add the button, and I'll think about it some more ^^ |
@Chaphasilor ok so yesterday evening i have worked on implementing the menu to the player screen. It is more difficult than i thougt. I had to rewrite the state managment in the playerscreen. Currently it works, but it does not update the screen. So i think there is some callback currently not working. Have to check. |
@jmshrv maybe could you check this PR i am a little bit stuck why the player screen does not get updated |
I'll look into it in a bit, I've been very busy recently so I haven't kept up on Finamp issues |
@jmshrv yeah no problem. just being stuck. |
Had a quick look through the code, it's mostly good, just a few things:
|
@jmshrv will check it the next weeks |
@jmshrv so i have removed the providers from the album image. How can i fix it, that song info does not get rendered every frame? |
Ok so as i was to dumb to commit last time.... I had to rewrite everything again. |
Ah yeah that code is temporary, I've submitted a PR to I'll have a look at your other questions at some point (as well as getting that PR merged). I'm on holiday right now so I don't have much time to be doing Finamp stuff, but thanks for being active on the project today :) |
Now it looks like this: Menu.mp4 |
Nice, that's a good baseline to continue development from I think. On the player page I'm not a huge fan of another bottom sheet, because that's already used for the queue and would result in confusing interactions (does swiping up open the queue or the menu?). Right now there's also an unnecessary swipe up that's needed in order to show all options. But I'm interested to hear why you're not a fan of modals dialogs? What are the issues with them? Maybe I'm missing something that makes bottom sheets (or something similar) more suitable :) |
@Chaphasilor yes i know i would like a popup button menu more too. It was just easier to implement it this way. If it works i will change it to popupbutton menu. The nice thing of the bottom sheet is that you have this header where you can providr information about the currently selected item. i find that very useful in the song list. |
Okay, nice. Not sure if I ever posted this, but the popover menu would also show the selected item: (this is for an album, but it would be almost the exact same for a song :)) And we could think about adding swipe up/down gestures for closing the menu, in addition to the X-button or clicking outside the modal |
@jmshrv yes i know i tried it, but i did not get it to work. the problem here is that the buttons have no boundaries, if they would be elevated or something it would be far more remarkable that there is something cut of. |
@Y0ngg4n could you resolve the conflicts so we can get this merged? Would like to bring this up to speed for the beta :D |
@Chaphasilor i can try |
@Chaphasilor i hope i didn´t messed the merge up |
I'll take a look at it later. It's just some types that are wrong or missing parameters, not big deal hopefully. But thanks for doing the heavy lifting here! :D |
@Chaphasilor i can try to fix it |
Managed to fix it. There were some changes that got lost while merging and I tried my best to restore those :) Edit: flutter_downloader is still giving some trouble, but worst case I just need to pin the version... |
- looks like a button, overlays menu items and looks a bit out of place - if people have trouble figuring out that the sheet can be scrolled, maybe an actual scrollbar like in the queue would help
- added blurred album cover to menu - updated colors - updated layout
@Chaphasilor you are the best :) |
Only thing missing now is adding some extra buttons when the menu is shown on the player screen, otherwise we lose the sleep timer :) Edit: buttons like "go to album" also seem to be missing (artist, genre). "Add to favorites" should probably be more at the top |
Okay, this should be done now :) |
@Chaphasilor looks good should work :) Thank you for your help :) |
Alright, it's merged. Thanks for all your work! |
@Chaphasilor i have to thank you ;) |
@jmshrv it seems like
flutter_downloader switched the repository and the DownloadCallback works with an int now.
I hope this fixes the issues.
Edit: Also this Pull Request redesigns the Menu.
It now looks like this:
MenuRedesign.mp4