Open aytunch opened 1 year ago
Currently the banner style is opiniated, I wanted to have a design similar to the one from the react-smartbanner package (live demo).
Now, of course I'm planning to have much more customizations for the v1 but this will require to rework a bit the current styling system and I cannot give any release date as I'm not working full-time on this package (but any PR is welcome if you want to work on this 🙂).
I've made some progress for the custom styling and would love to have your opinion on the new API that will be provided by the package.
I've added a themeBuilder
and bannerBuilder
parameters to be able to override the default SmartBannerThemeData
and replace the "opiniated" banner design by any custom widgets. You can try those "in progress" features by pointing to the GitHub repository from your pubspec.yaml
:
dependencies:
smart_banner:
git:
url: https://github.com/TesteurManiak/smart_banner
ref: feat/#5_custom-styling
Let's say I want the banner background color to be similar to my app's scaffold bg color. Now the color is fixed. I realize that changing the bg color also means the texts might not be visible on same color bg. So I am open to suggestions. Maybe textColor as well? :)
Lastly, being able to optionally render a thin divider/separator at the top/bottom according to the position of the banner can be nice. What do you think?