together_mobile/lib/screens/message/components/input_icon_button.dart

25 lines
529 B
Dart
Raw Permalink Normal View History

2023-06-21 17:44:28 +08:00
import 'package:flutter/material.dart';
2024-04-09 17:23:28 +08:00
import '/common/constants.dart';
2023-06-21 17:44:28 +08:00
class InputIconButton extends StatelessWidget {
const InputIconButton({
super.key,
required this.onPressed,
required this.icon,
});
final VoidCallback onPressed;
final Icon icon;
@override
Widget build(BuildContext context) => IconButton(
onPressed: onPressed,
icon: icon,
iconSize: 30,
color: kUnActivatedColor,
splashRadius: 16,
visualDensity: VisualDensity.compact,
);
}