From 5f5107ee997efa092d37fbc59511067356bab2b2 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Thu, 16 Oct 2025 09:46:02 +0200 Subject: [PATCH] QOL: Add Long Press to mih button --- .../lib/mih_components/mih_package_components/mih_button.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Frontend/lib/mih_components/mih_package_components/mih_button.dart b/Frontend/lib/mih_components/mih_package_components/mih_button.dart index 4166f475..6e76d55c 100644 --- a/Frontend/lib/mih_components/mih_package_components/mih_button.dart +++ b/Frontend/lib/mih_components/mih_package_components/mih_button.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; class MihButton extends StatelessWidget { final void Function()? onPressed; + final void Function()? onLongPressed; final Color buttonColor; final double? width; final double? height; @@ -12,6 +13,7 @@ class MihButton extends StatelessWidget { const MihButton({ super.key, required this.onPressed, + this.onLongPressed, required this.buttonColor, this.width, this.height, @@ -49,6 +51,7 @@ class MihButton extends StatelessWidget { highlightColor: rippleColor.withValues(alpha: 0.2), hoverColor: rippleColor.withValues(alpha: 0.3), onTap: onPressed, + onLongPress: onLongPressed, child: Container( width: width, height: height,