Skip to content

[flutter 3.41.x] NavigationDestination shows empty tooltip #182495

Description

@kvnmtz

Steps to reproduce

Use NavigationDestination and pass an empty string for the tooltip parameter

Expected results

Documentation states:

If [tooltip] is an empty string, no tooltip will be used.

In every version below Flutter 3.41, no tooltip would show up when hovering a NavigationDestination with an empty string as tooltip.

Actual results

Since Flutter 3.41, a small "empty" tooltip shows up (see screenshot), which I don't think is intended.

Code sample

Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(child: Text('Hello World!')),
        bottomNavigationBar: NavigationBar(
          destinations: [
            NavigationDestination(
              icon: Icon(Icons.bug_report),
              label: 'Bug',
              tooltip: '',
            ),
            NavigationDestination(
              icon: Icon(Icons.bug_report),
              label: 'Bug',
              tooltip: '',
            ),
          ],
        ),
      ),
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration Image

Logs

Logs

(Not relevant)

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.41.1, on Microsoft Windows [Version 10.0.26100.7840], locale de-DE) [429ms]
    • Flutter version 3.41.1 on channel stable at C:\Users\...\fvm\versions\3.41.1
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 582a0e7c55 (5 days ago), 2026-02-12 17:12:32 -0800
    • Engine revision 3452d735bd
    • Dart version 3.11.0
    • DevTools version 2.54.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios,
      cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration

[√] Windows Version (Windows 11 or higher, 24H2, 2009) [983ms]

[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [403ms]
    • Android SDK at C:\Users\...\AppData\Local\Android\sdk
    • Emulator version 35.4.9.0 (build_id 13025442) (CL:N/A)
    X cmdline-tools component is missing.
      Try installing or updating Android Studio.
      Alternatively, download the tools from https://developer.android.com/studio#command-line-tools-only and make sure to set the
      ANDROID_HOME environment variable.
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/windows-android-setup for more details.

[√] Chrome - develop for the web [175ms]
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.0 Preview 3.0) [174ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36015.10
    • The current Visual Studio installation is a pre-release version. It may not be supported by Flutter yet.
    • Windows 10 SDK version 10.0.26100.0

[√] Connected device (3 available) [217ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.7840]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 144.0.7559.133
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 145.0.3800.58

[√] Network resources [355ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowframeworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions