-
Notifications
You must be signed in to change notification settings - Fork 30.6k
AnimatedCrossFade clips CircularProgressIndicator #25950
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: animationAnimation APIsAnimation APIsf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.found in release: 3.3Found to occur in 3.3Found to occur in 3.3found in release: 3.5Found to occur in 3.5Found to occur in 3.5frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to Reproduce
CircularProgressIndicatorwidget, IncreasestrokeWidthto 10 to better see the issue.AnimatedCrossFadewidget to toggle between the two.Note: Adding padding resulted in a skewed indicator, Which is even more strange.
Detailed issue demonstration
Code to reproduce
In a stateful widget
Without the
SizedBoxWith padding around the
CircularProgressIndicator, Issue seems to be fixed but during transition the indicator is skewed as demonstrated by this gif, Surrounding the padding with aSizedBoxshows that theAnimatedCrossFadedoesn't respect theSizedBox's Size and skews the indicator while animating the size transition anyway.I hope this is enough detail to reproduce, I'll be glad to provide more if needed.
flutter doctor -v