Add ability to send images over lora
This commit is contained in:
1 parent
736eb064bf
commit
eee72b4c65
129 files changed
+27099
-58
No files matched your search
@@ -0,0 +1,25 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user