mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-12 00:03:13 +00:00
@ -8,11 +8,11 @@ class HoverableButton extends StatefulWidget {
|
||||
final VoidCallback onTap;
|
||||
|
||||
const HoverableButton({
|
||||
super.key,
|
||||
Key? key,
|
||||
required this.iconPath,
|
||||
required this.text,
|
||||
required this.onTap,
|
||||
});
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<HoverableButton> createState() => _HoverableButtonState();
|
||||
@ -34,17 +34,14 @@ class _HoverableButtonState extends State<HoverableButton> {
|
||||
child: SizedBox(
|
||||
width: screenWidth * .07,
|
||||
child: Container(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 13, vertical: 8),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 13, vertical: 8),
|
||||
decoration: BoxDecoration(
|
||||
color: isHovered
|
||||
? ColorsManager.warningRed
|
||||
: ColorsManager.whiteColors,
|
||||
color: isHovered ? ColorsManager.warningRed : ColorsManager.whiteColors,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
boxShadow: [
|
||||
if (isHovered)
|
||||
BoxShadow(
|
||||
color: ColorsManager.warningRed.withValues(alpha: 0.4),
|
||||
color: ColorsManager.warningRed.withOpacity(0.4),
|
||||
blurRadius: 8,
|
||||
offset: const Offset(0, 4),
|
||||
),
|
||||
|
Reference in New Issue
Block a user