mirror of
https://github.com/iampawan/Flutter-Music-Player.git
synced 2025-08-06 14:52:05 +08:00
19 lines
404 B
Dart
19 lines
404 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ControlButton extends StatelessWidget {
|
|
final VoidCallback _onTap;
|
|
final IconData iconData;
|
|
|
|
ControlButton(this.iconData, this._onTap);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new IconButton(
|
|
onPressed: _onTap,
|
|
iconSize: 50.0,
|
|
icon: new Icon(iconData),
|
|
color: Theme.of(context).buttonColor,
|
|
);
|
|
}
|
|
}
|