mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
new: pve ctrl (#307)
This commit is contained in:
28
lib/view/widget/icon_btn.dart
Normal file
28
lib/view/widget/icon_btn.dart
Normal 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),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user