Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix deprecation message
  • Loading branch information
IvoneDjaja committed Jan 26, 2026
commit 167622add0cbe560509c84c7ac095dd50bcad90e
4 changes: 2 additions & 2 deletions packages/flutter/lib/src/widgets/transitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ class SizeTransition extends AnimatedWidget {
required Animation<double> sizeFactor,
@Deprecated(

@reidbaker reidbaker Nov 24, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Analysis errors appear to be formatting of this file.

git apply <<DONE
diff --git a/packages/flutter/lib/src/widgets/transitions.dart b/packages/flutter/lib/src/widgets/transitions.dart
index 346a94648b8..00000000000 100644
--- a/packages/flutter/lib/src/widgets/transitions.dart
+++ b/packages/flutter/lib/src/widgets/transitions.dart
@@ -454,7 +454,8 @@ class SizeTransition extends AnimatedWidget {
     @Deprecated(
       'Use alignment instead. '
       'This feature was deprecated after v3.38.0-1.0.pre-716',
-    ) this.axisAlignment,
+    )
+    this.axisAlignment,
     this.alignment,
     this.fixedCrossAxisSizeFactor,
     this.child,
@@ -1254,3 +1255,4 @@ class AnimatedBuilder extends ListenableBuilder {
   @override
   TransitionBuilder get builder => super.builder;
 }
diff --git a/packages/flutter/test_fixes/widgets/transitions.dart b/packages/flutter/test_fixes/widgets/transitions.dart
index 9e73b4584bb..00000000000 100644
--- a/packages/flutter/test_fixes/widgets/transitions.dart
+++ b/packages/flutter/test_fixes/widgets/transitions.dart
@@ -5,6 +5,10 @@ void main() {
   SizeTransition();
   SizeTransition(axisAlignment: 1.0);
   SizeTransition(axis: Axis.vertical, axisAlignment: 1.0);
-  SizeTransition(axis: Axis.vertical, axisAlignment: position.dx < 0 ? 1.0 : -1.0);
+  SizeTransition(
+    axis: Axis.vertical,
+    axisAlignment: position.dx < 0 ? 1.0 : -1.0,
+  );
   SizeTransition(axis: Axis.horizontal, axisAlignment: 1.0);
 }
DONE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @reidbaker, I fixed the 2 formatting issues here:
Fix deprecation message
Fix format

'Use alignment instead. '
'This feature was deprecated after v3.38.0-1.0.pre-681',
'This feature was deprecated after v3.38.0-1.0.pre-716',
) this.axisAlignment,
this.alignment,
this.fixedCrossAxisSizeFactor,
Expand Down Expand Up @@ -489,7 +489,7 @@ class SizeTransition extends AnimatedWidget {
/// A value of 0.0 (the default) indicates the center for either [axis] value.

@dkwingsmt dkwingsmt Dec 17, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add something like "This property has been deprecated and superseded by [alignment]. Existing usages can be migrated to [alignment] as ... ".

(A brief migration guide might not be required here, although I think it'll be a good idea unless it's very complicated.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Deprecated(
'Use alignment instead. '
'This feature was deprecated after v3.38.0-1.0.pre-681',
'This feature was deprecated after v3.38.0-1.0.pre-716',
)
final double? axisAlignment;

Expand Down