[SingleChildScrollView] Correct the offset pixels if it is out of range during layout (#136239)
Fixes https://github.com/flutter/flutter/issues/105733 FIxes https://github.com/flutter/flutter/issues/135865 The above two issues will not occur on the `ListView` widget, so after analyzing their differences, it was found that the `SingleChildScrollView` pixels were not corrected according to the content dimensions during layout. ### ListView correct the pixels codes https://github.com/flutter/flutter/blob/5dfd78c2e30483a9a8668ba6b754d089b1e132c8/packages/flutter/lib/src/rendering/viewport.dart#L1462-L1465 We should correct the pixels to prevent the physics ballistic simulations. This change makes them have the same behavior.
Showing
Please register or sign in to comment