31 lines
602 B
Dart
31 lines
602 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class TimerButton extends StatelessWidget {
|
||
|
final VoidCallback onClicked;
|
||
|
final Icon icon;
|
||
|
final Color color;
|
||
|
|
||
|
const TimerButton(
|
||
|
{Key? key,
|
||
|
required this.onClicked,
|
||
|
required this.icon,
|
||
|
required this.color})
|
||
|
: super(key: key);
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Column(
|
||
|
children: [
|
||
|
InkWell(
|
||
|
onTap: onClicked,
|
||
|
child: CircleAvatar(
|
||
|
backgroundColor: color,
|
||
|
radius: 50,
|
||
|
child: icon,
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|