new: pve ctrl (#307)

This commit is contained in:
lollipopkit
2024-03-19 01:00:28 -06:00
parent 2597f99571
commit 48fdf4cc84
4 changed files with 331 additions and 123 deletions

View File

@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
final class IconBtn extends StatelessWidget {
final IconData icon;
final double size;
final Color? color;
final void Function() onTap;
const IconBtn({
super.key,
required this.icon,
required this.onTap,
this.size = 17,
this.color,
});
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTap,
borderRadius: BorderRadius.circular(17),
child: Padding(
padding: const EdgeInsets.all(8),
child: Icon(icon, size: size, color: color),
),
);
}
}