Files
afterwork/lib/presentation/widgets/animated_action_button.dart
2024-09-24 00:32:20 +00:00

24 lines
547 B
Dart

import 'package:flutter/material.dart';
class AnimatedActionButton extends StatelessWidget {
final IconData icon;
final String label;
const AnimatedActionButton({
super.key,
required this.icon,
required this.label,
});
@override
Widget build(BuildContext context) {
return Column(
children: [
Icon(icon, color: Colors.white, size: 30),
const SizedBox(height: 5),
Text(label, style: const TextStyle(color: Colors.white, fontSize: 12, fontWeight: FontWeight.w600)),
],
);
}
}