Files
PiliPlus/lib/plugin/pl_player/widgets/common_btn.dart
bggRGjQaUbCoE 0b8e95477c mod: handle show viewpoints btn
Closes #457

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-03-16 11:22:20 +08:00

28 lines
503 B
Dart

import 'package:flutter/material.dart';
class ComBtn extends StatelessWidget {
final Widget icon;
final VoidCallback? onTap;
final VoidCallback? onLongPress;
const ComBtn({
required this.icon,
this.onTap,
this.onLongPress,
super.key,
});
@override
Widget build(BuildContext context) {
return SizedBox(
width: 34,
height: 34,
child: GestureDetector(
onTap: onTap,
onLongPress: onLongPress,
child: icon,
),
);
}
}