material-components-flutter icon indicating copy to clipboard operation
material-components-flutter copied to clipboard

[Web] `ListTile` `title` shift to the right on rebuild.

Open raphael-bmec-co opened this issue 4 years ago • 2 comments

Steps to reproduce

  1. Create a new Flutter project (increment template).
  2. Add a ListTile into the Column in MyHomePage:
ListTile(
  leading: Icon(Icons.warning),
  title: Text("This text moves to the right when the mouse enters the display on web."),
),
  1. Once the page has loaded, move the mouse onto the page.

Observed behaviour (bug)

The text will shift slightly to the right.

Expected behaviour

The text does not move.

Additional information

  1. I initially observed this behaviour when a ListTile was included in a dialog. The shift occurred on the first click within the dialog rather than on the mouseover.
  2. If visualDensity: VisualDensity.standard, is set then the issue no longer occurs.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.24.0-10.2.pre, on Microsoft Windows [Version 10.0.18363.1316], locale en-ZA)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] Connected device (3 available)

! Doctor found issues in 1 category.

Looking forward to some feedback on this.

Thanks.

raphael-bmec-co avatar Feb 03 '21 18:02 raphael-bmec-co

Thanks for filing this issue @raphael-bmec-co

Could you instead file the issue in the flutter framework itself at https://github.com/flutter/flutter/issues, thanks!

rami-a avatar Feb 03 '21 19:02 rami-a

Thank you. Sorry about that. I did read the check but didn't think this was related to the framework. I will repost it there.

raphael-bmec-co avatar Feb 04 '21 07:02 raphael-bmec-co