mod: handle show viewpoints btn

Closes #457

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-03-16 11:20:55 +08:00
parent c2e9a7deb3
commit 0b8e95477c
4 changed files with 26 additions and 17 deletions

View File

@@ -1,12 +1,14 @@
import 'package:flutter/material.dart';
class ComBtn extends StatelessWidget {
final Widget? icon;
final GestureTapCallback? fuc;
final Widget icon;
final VoidCallback? onTap;
final VoidCallback? onLongPress;
const ComBtn({
this.icon,
this.fuc,
required this.icon,
this.onTap,
this.onLongPress,
super.key,
});
@@ -16,8 +18,9 @@ class ComBtn extends StatelessWidget {
width: 34,
height: 34,
child: GestureDetector(
onTap: fuc,
child: icon!,
onTap: onTap,
onLongPress: onLongPress,
child: icon,
),
);
}