fix: ExpansionTileTheme.shape assignment in ExpansionTile (#127749)

The ExpansionTile was not following `shape` from ExpansionTileTheme as it was assigning wrong parameter to the tween.

fixes #129785
This commit is contained in:
Darshan Rander
2023-07-11 14:17:11 +05:30
committed by GitHub
parent 74491fc73e
commit af2e28230f
2 changed files with 2 additions and 2 deletions

View File

@@ -683,7 +683,7 @@ class _ExpansionTileState extends State<ExpansionTile> with SingleTickerProvider
bottom: BorderSide(color: Colors.transparent),
)
..end = widget.shape
?? expansionTileTheme.collapsedShape
?? expansionTileTheme.shape
?? Border(
top: BorderSide(color: theme.dividerColor),
bottom: BorderSide(color: theme.dividerColor),

View File

@@ -290,7 +290,7 @@ void main() {
// Check the expanded text color when textColor is applied.
expect(getTextColor(), textColor);
// Check the expanded ShapeBorder when shape is applied.
expect(shapeDecoration.shape, collapsedShape);
expect(shapeDecoration.shape, shape);
// Check the child position when expandedAlignment is applied.
final Rect childRect = tester.getRect(find.text('Tile 1'));