Bruno Leroux 7cadbeac6a
Fix CarouselView crashes when initlal viewportDimension is 0.0 (#167271)
## Description

This PR fixes CarouselView crashes due to viewportDimension being 0.0.
 
At startup, a warm-up frame can be produced before the Flutter engine
has reported the
initial view metrics. As a result, the first frame can be produced with
a size of zero. In the context of CarouselView this leads to some
problems mainly related to division by zero.

## Related Issue

Fixes https://github.com/flutter/flutter/issues/163436
Fixes https://github.com/flutter/flutter/issues/160679

## Tests

Adds 5 tests.
2025-04-18 12:15:30 +00:00
..
2025-01-10 23:01:08 +00:00
2024-12-19 20:06:21 +00:00
2024-12-19 20:06:21 +00:00