Closed mattjohnsonpint closed 1 year ago
Workaround:
Where the image is loaded here:
Specify a width and height request.
Image image = new Image
{
Source = ImageSource.FromUri(new Uri(photoUri)),
WidthRequest = 100,
HeightRequest = 100
};
Then everything loads and scrolls as expected.
That works in Android as well, and prevents the crash.
Is this a bug in the sample, or a bug in MAUI?
Hi @mattjohnsonpint
Agreed about the photos on iOS and Android, although the latest MAUI release for iOS does produce a slightly different result. Windows does the best job of displaying the photos, without setting any dimensions, but still gives a weird result
Its bugs in MAUI - the identical sample runs in Xamarin.Forms just fine. But I'll update the sample with your suggestion, which is sensible anyway (controlling the image size yourself), so thanks for reporting this.
Build the FlexLayoutDemos and run them in an iOS simulator and in an Android emulator. When the app starts, click "Photo wrapping".
On iOS, the screen is empty white:
Click "< Back" at the top, then click "Photo wrapping" again, and the page is now loaded with image - except they are all very tiny and in one big vertical stack. There is no scrolling behavior.
On Android, the page initially loads while rendering the results - again in one big vertical stack. But then the app hangs and crashes without any logged exceptions.
adb logcat
shows: