I have a list that is sorted such that the most recent items appear at the bottom just like a chat window, in which the most recent message typically shows up at the bottom.
This list is inside a view that has a toolbar at the top and a textfield at the bottom. The outer layout is vbox and the list is set to flex: 1.
The issue I'm having is that when the list is empty, if I type in a message, it appears at the top of the empty list. On my device, when I have the touch keyboard on, the entire view is pushed up, and I don't see the message that I just entered. The problem solves itself as soon as the list has enough messages to fill the space between the top toolbar and the bottom textfield, because then when I enter a message, it pops up at the bottom of the list rather than at the top.
Is there a way to tweak the layout such that when the list is empty, the message still appears at the bottom and with every message added, the list would keep consuming the space above it?
Please help! Thanks!