24 lines
547 B
Dart
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)),
|
|
],
|
|
);
|
|
}
|
|
}
|