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 {
3333 color: backgroundColor,
3434 shape: BoxShape .circle,
3535 ),
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 ,
3740 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,
5048 ),
5149 ),
5250 ),
You can’t perform that action at this time.
0 commit comments