Update actiopn button

This commit is contained in:
2024-09-30 15:19:09 +02:00
parent fdbcf1b119
commit 412e0e8f59
10 changed files with 12 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
class MIHAction extends StatefulWidget {
final void Function()? onTap;
final double iconSize;
final IconData icon;
final Widget icon;
const MIHAction({
super.key,
required this.icon,
@@ -35,12 +35,10 @@ class _MIHActionState extends State<MIHAction> {
height: 50,
child: Builder(
builder: (context) => IconButton(
iconSize: widget.iconSize,
padding: const EdgeInsets.all(0),
onPressed: widget.onTap,
icon: Icon(
widget.icon,
size: widget.iconSize,
),
icon: widget.icon,
),
),
);