letsar / flutter_sidekick

Widgets for creating Hero-like animations between two widgets within the same screen.
MIT License
294 stars 40 forks source link

Change SourceList after initialization #1

Closed rogiervandenberg closed 6 years ago

rogiervandenberg commented 6 years ago

Thanks for your great plugin! 🎉 I am trying to build a select-widget with it, based on the SidekickTeamBuilder. The SidekickTeamBuilder is in its own builder of a Streambuilder (I am using the bloc model for datastreams), so I (thought I) can just easily filter my initialSourceList.

But, even though my initialSourceList is setup correctly initially, when repainting the SidekickTeamBuilder with a new value for initialSourceList, it is never updated anymore when I rebuild/paint the widget.

My question: How could I filter the available (sourceList) items, after it is painted on the screen already?

letsar commented 6 years ago

Oh I see, I forgot to implement didUpdateWidget. I'm going to fix this and publish a new version.

letsar commented 6 years ago

Should be fixed in the last published version (0.1.2)