I am having an issue with laying out ItemTemplate in FlexLayout in maui. FlexLayout seems to act strange with laying out the item sources to it.
Here is a very simple code;
<DataTemplate x:Key="AndroidItemTemplate">
<Label Text="{Binding .}" FontSize="18" LineBreakMode="WordWrap"/>
</DataTemplate>
<ScrollView>
<FlexLayout JustifyContent="Start"
BindableLayout.ItemsSource="{Binding Sample}"
BindableLayout.ItemTemplate="{StaticResource AndroidItemTemplate}">
</FlexLayout>
</ScrollView>
MVVM with sets of string values;
public RangeObservableCollection<string> Sample { get; private set; } = new();
Sample.AddRange(new List<string>()
{
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
$"Hello, How are you",
});
This is what is happening in Android I haven't tested it in iOS.

However, I want that the text should appear next to each other until the row ends. Then it should start with the 2nd row and go on.
Should Show:
Hello, How are you Hello, How are you Hello, How are you Hello, How are you Hello, how are you Hello, how are you Hello, how are you...
The cause of this situation seems to be related to ViewModel.
Here is my code:
Page.xaml.cs:
ViewMdodel:
When add only one item to
Sample, it can display the effect that the text should appear next to each other until the row ends. Then it should start with the 2nd row and go on.However, when you add more than one item to
Sample, it will generate multiple labels in xaml. The effect you want cannot be achieved between labels, whether in FlexLayout or other layouts.