Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit fb8d1b8

Browse files
author
Yuncong Zhang
authored
Merge pull request #331 from UnityTech/fix_bottom_navi_bar_item_bug
Fix bottom navi bar item bug
2 parents 3edc797 + 31d10c0 commit fb8d1b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/material/bottom_navigation_bar.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public override Widget build(BuildContext context) {
348348
child: text
349349
);
350350
}
351-
else if (this.showUnselectedLabels) {
351+
else if (!this.showUnselectedLabels) {
352352
text = new FadeTransition(
353353
opacity: this.animation,
354354
child: text
@@ -576,6 +576,7 @@ public override Widget build(BuildContext context) {
576576
Color backgroundColor = null;
577577
switch (this.widget.type) {
578578
case BottomNavigationBarType.fix:
579+
backgroundColor = this.widget.backgroundColor;
579580
break;
580581
case BottomNavigationBarType.shifting:
581582
backgroundColor = this._backgroundColor;

0 commit comments

Comments
 (0)