Dn-a / flutter_tags

With flutter tags you can create selectable or input tags that automatically adapt to the screen width
https://pub.dartlang.org/packages/flutter_tags
MIT License
508 stars 124 forks source link

Preserve the scroll position between tabs (so, after a widget rebuid) #68

Open Akiat opened 3 years ago

Akiat commented 3 years ago

Hi,

First of all, thanks for this great widget 👍

Here is my issue: I have an app with a TabBar, and obvously, multiple tabs. In each tabs I have my Tags widget on the top, with horizontalScroll: true.

I would like to preserve the horizontal scroll position when I switch from a tab to another.

I tried to do that with a ScrollController but there is no controller parameter for the Tags widget.

Is there a way to keep the scroll position after a widget rebuild, without ScrollController ?

Thanks in advance :)

Dn-a commented 3 years ago

Hi @Akiat, I will add this feature in the next release.

Akiat commented 3 years ago

Great, thank you @Dn-a :)

Do you have any idea when it will be released? (approximatively ?)

Dn-a commented 3 years ago

@Akiat I hope next week

Akiat commented 3 years ago

Has this feature been added?