// Copyright 2014 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/rendering.dart'; void main() { // Changes made in https://github.com/flutter/flutter/pull/66305 RenderStack renderStack = RenderStack(); renderStack = RenderStack(clipBehavior: Clip.none); renderStack = RenderStack(clipBehavior: Clip.hardEdge); renderStack = RenderStack(error: ''); renderStack.clipBehavior; // Changes made in https://docs.flutter.dev/release/breaking-changes/clip-behavior RenderListWheelViewport renderListWheelViewport = RenderListWheelViewport(); renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.hardEdge); renderListWheelViewport = RenderListWheelViewport(clipBehavior: Clip.none); renderListWheelViewport = RenderListWheelViewport(error: ''); renderListWheelViewport.clipBehavior; // Change made in https://github.com/flutter/flutter/pull/128522 RenderParagraph(textScaler: TextScaler.linear(math.min(123, 456))); RenderParagraph(); RenderEditable(textScaler: TextScaler.linear(math.min(123, 456))); RenderEditable(); // Changes made in https://github.com/flutter/flutter/issues/13044 RenderViewport renderViewport = RenderViewport(); renderViewport = RenderViewport(scrollCacheExtent: ScrollCacheExtent.pixels(1.0)); renderViewport = RenderViewport( scrollCacheExtent: ScrollCacheExtent.pixels(1.0), ); renderViewport = RenderViewport( scrollCacheExtent: ScrollCacheExtent.viewport(2.0), ); // Runtime variable (should NOT be migrated) CacheExtentStyle cacheExtentStyle = CacheExtentStyle.viewport; renderViewport = RenderViewport( cacheExtent: 1.0, cacheExtentStyle: cacheExtentStyle, ); RenderShrinkWrappingViewport renderShrinkWrappingViewport = RenderShrinkWrappingViewport(); renderShrinkWrappingViewport = RenderShrinkWrappingViewport(scrollCacheExtent: ScrollCacheExtent.pixels(1.0)); renderShrinkWrappingViewport = RenderShrinkWrappingViewport( scrollCacheExtent: ScrollCacheExtent.pixels(1.0), ); renderShrinkWrappingViewport = RenderShrinkWrappingViewport( scrollCacheExtent: ScrollCacheExtent.viewport(2.0), ); // Runtime variable (should NOT be migrated) renderShrinkWrappingViewport = RenderShrinkWrappingViewport( cacheExtent: 1.0, cacheExtentStyle: cacheExtentStyle, ); }