Closed georonathan47 closed 1 year ago
3 questions
Container
/ ColoredBox
/ DecoratedBox
?BottomNavigationBar
allow for setting of the background color?To answer your questions
1: Yes, that's essentially what I did (Wrapping the entire widget around a Container
)
If backgroundColor is null, The navigation bar's background color defaults to the Material background color, ThemeData.canvasColor (essentially opaque white)
BottomNavigationBar – Flutter API Docs
Let's copy this functionality, use a ColoredBox, and make this a minimal diff.
A minimal diff is the the absolute minimum code changes needed to add the feature.
Sure... I will close this PR and open a new one with the minimal diff using ColoredBox
On Sun, Dec 18, 2022 at 5:58 PM Luke Pighetti @.***> wrote:
If backgroundColor https://api.flutter.dev/flutter/material/material/BottomNavigationBar/backgroundColor.html is null, The navigation bar's background color defaults to the Material https://api.flutter.dev/flutter/material/material/Material-class.html background color, ThemeData.canvasColor https://api.flutter.dev/flutter/material/material/ThemeData/canvasColor.html (essentially opaque white)
Let's copy this functionality, use a ColoredBox, and make this a minimal diff.
A minimal diff is the the absolute minimum code changes needed to add the feature.
— Reply to this email directly, view it on GitHub https://github.com/lukepighetti/salomon_bottom_bar/pull/37#issuecomment-1356845392, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANRVGIXDP7KD7YZCZ7OCU63WN5GFTANCNFSM6AAAAAATCBHGCU . You are receiving this because you authored the thread.Message ID: @.***>
Sounds good, thanks!
Developers can now add the preferred
backgroundColor
of their choice by calling the backgroundColor option...