ScrollView if it has one item

how to stop scrollview from snapping it’s child to top when it has only one item, I want it to be centered if the items are one and if they are more it can work normally as it should

Have you tried using this: ?

You can define a Layout with an item centered when the count is equal 1 and when the count is greater than 1 you can define your scrollview.