Skip to content

Chip tooltips not showing when default delete tooltip is used #90044

@zambetpentru

Description

@zambetpentru

Hi,

When I add a FilterChip tooltip it does not appear in Web, can you please have a look and confirm?

minimal code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Tooltip issue'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;
  List<String> data = [];

  @override
  Widget build(BuildContext context) {
    for (int a = 0; a < 30; a++) {
      _counter++;
      data.add('Test' + _counter.toString());
    }

    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          children: [
            Wrap(
                spacing: 4,
                runSpacing: 0,
                children: data.map((_) {
                  return FilterChip(
                    tooltip: 'This tooltip does not show',
                    label: Text(_),
                    onSelected: (value) {},
                  );
                }).toList()),
          ],
        ),
      ),
    );
  }
}
flutter doctor
[√] Flutter (Channel master, 2.6.0-1.0.pre.238, on Microsoft Windows [Version 10.0.17763.2114], locale en-IE)
    • Flutter version 2.6.0-1.0.pre.238 at C:\Code\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 53e851162e (9 hours ago), 2021-09-10 01:37:42 -0400
    • Engine revision 825c409164
    • Dart version 2.15.0 (build 2.15.0-93.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Omega\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Code\FlutterTesting\ChromeCORS.bat

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code (version 1.60.0)
    • VS Code at C:\Users\Omega\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.26.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 93.0.4577.63
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 92.0.902.73

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    f: material designflutter/packages/flutter/material repository.found in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions