Closed prateekmedia closed 2 years ago
I'm going to take a look at this PR now :)
I can't install the latest libadwaita version that includes the updated view switcher. I'm on Fedora 35 and can't compile GTK 4.5 :(
Did you manage to test the new view switcher?
@jesusrp98 Yes, You can try latest libadwaita demo flatpak if it's not compiling for you.
@jesusrp98 Yes, You can try latest libadwaita demo flatpak if it's not compiling for you.
Would you be able to provide me with a link? Thanks!
EDIT: Found, thanks for the tip!
I'm going to push a couple commits into this branch. We can change anything related to them no problem :)
@jesusrp98 I only have one issue left for now and that is the code duplication part.
If someone wants to have ViewSwitcher for now then they have to create two different view switcher's: One for header bar one and the other for the Bottom Navigation Bar in AdwScaffold
just like #46.
This type of code duplication is not there in the Original libadwaita so we need some way to unify both Flap and View Switcher so that the developer using this doesn't have to face the same.
This issue is related, as you said, to the one related with AdwSidebar
. Fixing that issue is out of scope of this PR, but we should definetly create an issue to detail how that could be fixed.
What do you think about it?
@jesusrp98 Yes, That sounds good to me!
AdwButton.flat
as base for View switcher tabView Switcher:
View Switcher Collapsed:
Any feedback or code suggestion is welcome.