File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -33,20 +33,18 @@ class CenterPlayButton extends StatelessWidget {
33
33
color: backgroundColor,
34
34
shape: BoxShape .circle,
35
35
),
36
- child: Padding (
36
+ // Always set the iconSize on the IconButton, not on the Icon itself:
37
+ // https://github.com/flutter/flutter/issues/52980
38
+ child: IconButton (
39
+ iconSize: 32 ,
37
40
padding: const EdgeInsets .all (12.0 ),
38
- // Always set the iconSize on the IconButton, not on the Icon itself:
39
- // https://github.com/flutter/flutter/issues/52980
40
- child: IconButton (
41
- iconSize: 32 ,
42
- icon: isFinished
43
- ? Icon (Icons .replay, color: iconColor)
44
- : AnimatedPlayPause (
45
- color: iconColor,
46
- playing: isPlaying,
47
- ),
48
- onPressed: onPressed,
49
- ),
41
+ icon: isFinished
42
+ ? Icon (Icons .replay, color: iconColor)
43
+ : AnimatedPlayPause (
44
+ color: iconColor,
45
+ playing: isPlaying,
46
+ ),
47
+ onPressed: onPressed,
50
48
),
51
49
),
52
50
),
You can’t perform that action at this time.
0 commit comments