You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have several issue that seem to directly come from our usage of flutter_mentions. The dependency is clearly not maintained at this point and we need to decide what we want to do about it.
so, experimented with TypeAhead as an alternative, also pretty nice. However we face a similar issue here: We have to load the entire list of userIDs and displayNames once and check for them, thus potentially being a lot slower in even displaying the first set of items. If we were to use a riverpod-ish system though, we could have first checks go to ref.watch(memberDisplayName(..)).valueOrNull and whenever the becomes available re-evaluate it. that'd actually be nicer.
but purely technically speaking, what do we need/care about at this point?
we want to notice certain characters being typed (for now @ does it)
if that happens, we want to have Flutter Overlay appear showing us options, matching the list to the input
when a user selects any of them, we replace the content of the textfield with the corresponding match
The list in 2 should probably just be a simple widget that we can then feed a riverpod consumer into so we can live update and don't have to wait for avatar data and stuff.
nice to have, follow up after:
up and down arrows in the text field select items in the view, pressing enter selects it.
render the entry in the box differentely (user-pill with avatar and display name instead of the regular content)
other inputs we replace (e.g. emoji, and # to search rooms)
We have several issue that seem to directly come from our usage of flutter_mentions. The dependency is clearly not maintained at this point and we need to decide what we want to do about it.
Most notably it seems to cause:
The text was updated successfully, but these errors were encountered: