Message showing

This commit is contained in:
2024-04-17 23:00:53 +08:00
parent c25ae591b9
commit ba405770ed
12 changed files with 449 additions and 24 deletions

View File

@ -117,10 +117,11 @@ class _AttachmentItemState extends State<AttachmentItem> {
class AttachmentList extends StatelessWidget {
final List<Attachment> items;
final String provider;
const AttachmentList({super.key, required this.items});
const AttachmentList({super.key, required this.items, required this.provider});
Uri getFileUri(String fileId) => getRequestUri('interactive', '/api/attachments/o/$fileId');
Uri getFileUri(String fileId) => getRequestUri(provider, '/api/attachments/o/$fileId');
@override
Widget build(BuildContext context) {