2 Commits

Author SHA1 Message Date
Frank Wang
ae3d2df04b [MDCBottomNavigationBar] Add checks for nil when a new appearance is set and provide defaults. Based on failures observed in testing when removing deprecated badge properties, these values are nil by neglect and not nil by intent. Hence we will provide default values for badge appearance properties when they are nil and set on the nav bar.
PiperOrigin-RevId: 719333484
2025-01-24 09:35:22 -08:00
Jeff Verkoeyen
1cb5b29360 Badges] Extract BottomNavigation's badge out to its own component.
This is a verbatim copy. The only thing that has changed is the class name.

Also added a typical use basic example, which required implementing intrinsicContentSize.

PiperOrigin-RevId: 416131346
2021-12-13 14:14:49 -08:00