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...