mirror of
https://github.com/flutter/flutter.git
synced 2026-02-15 07:11:44 +08:00
## 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.
Flutter
Flutter is a new way to build high-performance, cross-platform mobile, web, and desktop apps. Flutter is optimized for today's — and tomorrow's — mobile and desktop devices. We are focused on low-latency input and high frame rates on all platforms.
See the getting started guide for information about using Flutter.