I’d like to have a widget in my application that operates much in the same way as a MaterialBanner with ScaffoldMessenger. But I’d like to customize the appearance of banner.
Is there a way that I can customize the appearance of MaterialBanner? In my initial experimentation I thought of extending it, but in the end I found that wasn’t really going to work. Also for a brief second I thought thought type casting a custom widget in my call to showMaterialBanner might work, but quickly ruled that out.
There's a few things I'm struggling to figure out how to address through the MaterialBanner widget, if it's still possible:
- I don't like (for lack of a better term) the grey overlay to the banner area that's applied. I'm not sure where to adjust that. I've tried setting the background color to white and transparent and it still shows up ultimately as an off white.
- Actions. I intend to make the actions within the banner content. currently I'm passing a
SizedBox.shrink()per another SO question