sunarya-thito / shadcn_flutter

Shadcn/UI ported to Flutter
https://sunarya-thito.github.io/shadcn_flutter/
BSD 3-Clause "New" or "Revised" License
47 stars 5 forks source link

Expanding the functionality of the App Bar and Navigation Bar #66

Open goottime opened 2 weeks ago

goottime commented 2 weeks ago

I propose to expand the functionality of these components:

  1. Add a color change to the App Bar and Navigation Bar. if there are elements behind. If there are no elements behind, then there will be a background color, and if you start scrolling, the color of the components will change to another.

https://github.com/user-attachments/assets/2b84ba04-534f-431c-8e23-3afb21af9f37

  1. Add an option to the App Bar with a large title that will hide when scrolling.

https://github.com/user-attachments/assets/afce04ca-bfa3-4327-ba46-11d0f2d0d81f

  1. Add the ability to hide when scrolling to the App Bar and Navigation Bar.

https://github.com/user-attachments/assets/4eceda30-61b4-4f32-966a-6b17992df217

I understand if this suddenly violates the library's design principles and you don't want to add this feature.

sunarya-thito commented 2 weeks ago

I can add this, but as Sliver components (the one you put under CustomScrollView/NestedScroll) rather than Scaffold child. Scaffold was never meant to have a fancy scroll effect.