flutter / flutter/flutter

[3.32] Bottom navigation bar background color remains black and not working per device's light and dark theme modes.

Open
#169,258 13 comments 2 reactions 0 assignees View on GitHub
c: regression found in release: 3.32 found in release: 3.33 has reproducible steps p: material_ui P2 package platform-android team-design triaged-design
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Render a screen

### Expected results

I expected the background of my buttons to be:
- Grey-ish on light mode
- Black on dark mode

### Actual results

The background color of my buttons remain black on both light and dark mode:

![Image](https://github.com/user-attachments/assets/64f22907-2539-4742-b6e1-b77dcd9cb863)

### Code sample

Code sample

```dart
return Scaffold(
body: const Text('test'),
bottomNavigationBar: BottomNavigationBar(
items: [
const BottomNavigationBarItem(
icon: Icon(Icons.home),
label: 'Home',
),
BottomNavigationBarItem(
icon: const Icon(Icons.settings),
label: AppLocalizations.of(context).settings,
),
],
),
);
```

### Screenshots or Video

![Image](https://github.com/user-attachments/assets/ec7419af-15cc-429f-b5e6-23db17a071e1)

### Logs

_No response_

### Flutter Doctor output

Doctor output

```console
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.32.0, on Microsoft Windows [Version 10.0.19045.5854], locale nl-BE)
[√] Windows Version (10 Pro 64-bit, 22H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2019 16.11.23)
[√] Android Studio (version 2023.3)
[√] Android Studio (version 2024.3.2)
[√] VS Code, 64-bit edition (version 1.100.2)
[√] Connected device (4 available)
[√] Network resources

• No issues found!
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.