Closed NeoLSN closed 4 years ago
@NeoLSN Thanks for reporting the issue I will take a look.
@NeoLSN Can you share the code I just tried reproducing this & everything works fine
You need to add another UI on the left or right side of the FlutterMentions. I can't show you the code, but the layout looks like
Row(
Flexible(FlutterMentions()),
SendButton(),
)
Yeah i did as you can see from the image there are two container one on the left and another on the right which both take about 20.0 width and everything works fine on my end.
Yeah i did as you can see from the image there are two container one on the left and another on the right which both take about 20.0 width and everything works fine on my end.
Can you just do it on one side only?
@NeoLSN so what I did is I have added two new properties called leading
& trailing
both are List<Widget>
, this should do the trick.
Also closing the issue.
@fayeed What do you mean? You just show me a trick, but not solving the real issue. That's just means I can't add other UI aside FlutterMentions...
@NeoLSN and what is the real issue?
I want to add a button right on the FlutterMentions like bellow codes,
Row(
children: [
Flexible(FlutterMentions()),
SendButton(),
]
)
But the suggestion list will be out of the screen. That's the issue.
Yeah, and you can do that using the trailing
widget.
edit: It's just a List of Widgets, that's it.
OK, I see. Sorry, I forgot pull the new library.
Also before commenting on implementation as just a "trick", please take a look at it and try using it.
Also before commenting on implementation as just a "trick", please take a look at it and try using it.
Yeah, I apologize about this. And thanks your help.
If there is any other UI aside, the portal will be tilting. Could you let the suggestion list always be on the screen center?