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

Commit 4bf9ea7

Browse files
author
Yuncong Zhang
committed
[1.5.4] Fix bottom navigation bar label position.
1 parent 24e59d1 commit 4bf9ea7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Runtime/material/bottom_navigation_bar.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ public override Widget build(BuildContext context) {
184184
float bottomPadding = this.selectedFontSize / 2.0f;
185185
float topPadding = this.selectedFontSize / 2.0f;
186186
if (this.showSelectedLabels && !this.showUnselectedLabels) {
187-
bottomPadding = new FloatTween(begin: 0.0f, end: this.selectedFontSize / 2.0f).evaluate(this.animation);
187+
bottomPadding = new FloatTween(
188+
begin: 0.0f,
189+
end: this.selectedFontSize / 2.0f
190+
).evaluate(this.animation);
188191
topPadding = new FloatTween(
189192
begin: this.selectedFontSize,
190193
end: this.selectedFontSize / 2.0f
@@ -335,7 +338,7 @@ public override Widget build(BuildContext context) {
335338
child: new Transform(
336339
transform: Matrix3.makeAll(t, 0, 0,
337340
0, t, 0,
338-
0, 0, t),
341+
0, 0, 1),
339342
alignment: Alignment.bottomCenter,
340343
child: this.item.title
341344
)

0 commit comments

Comments
 (0)