cpd_2022_zi/lib/widgets/timer_button.dart

30 lines
590 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
Widget build(BuildContext context) {
2023-02-14 12:57:06 +01:00
return Column(
children: [
InkWell(
child: CircleAvatar(
backgroundColor: color,
radius: 50,
child: icon,
),
onTap: onClicked,
),
],
);
}
}