cpd_2022_zi/lib/widgets/buttons/timer_button.dart

31 lines
602 B
Dart
Raw Normal View History

2023-02-14 12:57:06 +01:00
import 'package:flutter/material.dart';
class TimerButton extends StatelessWidget {
final VoidCallback onClicked;
2023-02-14 12:57:06 +01:00
final Icon icon;
final Color color;
const TimerButton(
{Key? key,
required this.onClicked,
required this.icon,
required this.color})
: super(key: key);
2023-02-14 12:57:06 +01:00
2023-02-14 14:13:32 +01:00
@override
Widget build(BuildContext context) {
2023-02-14 12:57:06 +01:00
return Column(
children: [
InkWell(
2023-02-14 14:13:32 +01:00
onTap: onClicked,
2023-02-14 12:57:06 +01:00
child: CircleAvatar(
backgroundColor: color,
radius: 50,
child: icon,
),
),
],
);
}
}