25 lines
552 B
Dart
25 lines
552 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
import 'package:together_mobile/common/constants.dart';
|
||
|
|
||
|
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,
|
||
|
);
|
||
|
}
|