Unverified Commit af2e2823 authored by Darshan Rander's avatar Darshan Rander Committed by GitHub

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
parent 74491fc7
...@@ -683,7 +683,7 @@ class _ExpansionTileState extends State<ExpansionTile> with SingleTickerProvider ...@@ -683,7 +683,7 @@ class _ExpansionTileState extends State<ExpansionTile> with SingleTickerProvider
bottom: BorderSide(color: Colors.transparent), bottom: BorderSide(color: Colors.transparent),
) )
..end = widget.shape ..end = widget.shape
?? expansionTileTheme.collapsedShape ?? expansionTileTheme.shape
?? Border( ?? Border(
top: BorderSide(color: theme.dividerColor), top: BorderSide(color: theme.dividerColor),
bottom: BorderSide(color: theme.dividerColor), bottom: BorderSide(color: theme.dividerColor),
......
...@@ -290,7 +290,7 @@ void main() { ...@@ -290,7 +290,7 @@ void main() {
// Check the expanded text color when textColor is applied. // Check the expanded text color when textColor is applied.
expect(getTextColor(), textColor); expect(getTextColor(), textColor);
// Check the expanded ShapeBorder when shape is applied. // Check the expanded ShapeBorder when shape is applied.
expect(shapeDecoration.shape, collapsedShape); expect(shapeDecoration.shape, shape);
// Check the child position when expandedAlignment is applied. // Check the child position when expandedAlignment is applied.
final Rect childRect = tester.getRect(find.text('Tile 1')); final Rect childRect = tester.getRect(find.text('Tile 1'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment