added custom actions
This commit is contained in:
@@ -394,14 +394,21 @@ class _DownloadProgress {
|
|||||||
int get toPercentage => (received * 100) ~/ total;
|
int get toPercentage => (received * 100) ~/ total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Class for custom attachment action
|
||||||
class AttachmentAction {
|
class AttachmentAction {
|
||||||
String actionTitle;
|
/// Constructor for custom attachment action
|
||||||
Widget icon;
|
|
||||||
VoidCallback onTap;
|
|
||||||
|
|
||||||
AttachmentAction({
|
AttachmentAction({
|
||||||
required this.actionTitle,
|
required this.actionTitle,
|
||||||
required this.icon,
|
required this.icon,
|
||||||
required this.onTap,
|
required this.onTap,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/// Title for the attachment action
|
||||||
|
String actionTitle;
|
||||||
|
|
||||||
|
/// Icon for the attachment action
|
||||||
|
Widget icon;
|
||||||
|
|
||||||
|
/// Callback for when the action is tapped
|
||||||
|
VoidCallback onTap;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user