mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
@@ -4,19 +4,23 @@ class ComBtn extends StatelessWidget {
|
||||
final Widget icon;
|
||||
final VoidCallback? onTap;
|
||||
final VoidCallback? onLongPress;
|
||||
final double width;
|
||||
final double height;
|
||||
|
||||
const ComBtn({
|
||||
super.key,
|
||||
required this.icon,
|
||||
this.onTap,
|
||||
this.onLongPress,
|
||||
super.key,
|
||||
this.width = 34,
|
||||
this.height = 34,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: 34,
|
||||
height: 34,
|
||||
width: width,
|
||||
height: height,
|
||||
child: GestureDetector(
|
||||
onTap: onTap,
|
||||
onLongPress: onLongPress,
|
||||
|
||||
Reference in New Issue
Block a user