vi-k / bubble

Speech bubble for Flutter
BSD 2-Clause "Simplified" License
266 stars 57 forks source link

Add custom key #22

Closed facuparedes closed 3 years ago

facuparedes commented 3 years ago

Hi! I'm using GetX with a ListView.builder to add a list of bubble messages in realtime. However, when Getx rebuild ListView, some "Bubble's widget" are not refreshing and lose its nip (it changes nip direction). However, I did a temporal fix adding a UniqueKey() on a parent container, just like this:

return Container(
      key: UniqueKey(),
      child: Bubble(
          ...
        ),
      ),
    )

Right now, that works like a charm. So, can you add a "key" parameter? Thanks u!

allanwolski commented 3 years ago

Same here with Bloc.

vi-k commented 3 years ago

See 1.2.1. Please, check it.