unclutter input bar

This commit is contained in:
ericz committed 2026-08-13 22:45:12 +02:00
1 parent 724696cd3c
commit 69edcbde64
40 files changed
+215 -116

No files matched your search

-25
View File
@@ -1,25 +0,0 @@
import 'package:flutter/material.dart';
import '../l10n/l10n.dart';
class ImageSendButton extends StatelessWidget {
final bool enabled;
final VoidCallback onPressed;
final String? tooltip;
const ImageSendButton({
super.key,
required this.enabled,
required this.onPressed,
this.tooltip,
});
@override
Widget build(BuildContext context) {
return IconButton(
icon: Icon(enabled ? Icons.image : Icons.image_outlined),
onPressed: enabled ? onPressed : null,
tooltip: tooltip ?? context.l10n.chat_sendImage,
);
}
}