Closed afominov closed 4 years ago
hi @omnifer, could you post your code? you must also indicate the version with flutter doctor
Hi, @Dn-a I've made a sample app and pushed code here, you can clone and run it.
Also the bug exists in example app from this repository. You can reproduce it with steps I wrote above.
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8)
• Flutter version 1.22.3
• Framework revision 8874f21e79 (13 days ago), 2020-10-29 14:14:35 -0700
• Engine revision a1440ca392
• Dart version 2.10.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/alexander/Android/Sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /usr/bin/java
• Java version OpenJDK Runtime Environment 18.9 (build 11.0.9+11)
• All Android licenses accepted.
@omnifer yes it's a bug and I will fix it in the next release. thanks.
Selecting tag item causes an exception in case Tags widget builds with
horizontalScroll: true
and ItemTags - withsingleItem: true
.I'm very new in flutter, but I've made a small investigation. It looks like, that in case horizontal scrolling with no symmetry the default ListView widget is used for building tag items list. If
singleItem
mode is true, selecting of tag item causes an exception, because of not all ListView items was builded and we are not be able to "disativate" each item inItemTagsState._singleItem()
As I said, I'm new with flutter. I think, I get a reason of that bug (hope I get it right :smile: ), but I have no idea how to fix it in a proper way.
Steps to reproduce:
horizontal scroll
andsingle item
checkboxesStack trace: