diff --git a/lib/widgets/attachment/attachment_list.dart b/lib/widgets/attachment/attachment_list.dart index abc77ec..f1a0352 100644 --- a/lib/widgets/attachment/attachment_list.dart +++ b/lib/widgets/attachment/attachment_list.dart @@ -15,10 +15,10 @@ class AttachmentList extends StatefulWidget { final List data; final bool bordered; final bool gridded; - final bool noGrow; final BoxFit fit; final double? maxHeight; final double? minWidth; + final double? maxWidth; final EdgeInsets? padding; const AttachmentList({ @@ -26,10 +26,10 @@ class AttachmentList extends StatefulWidget { required this.data, this.bordered = false, this.gridded = false, - this.noGrow = false, this.fit = BoxFit.cover, this.maxHeight, this.minWidth, + this.maxWidth, this.padding, }); diff --git a/lib/widgets/attachment/pending_attachment_alt.dart b/lib/widgets/attachment/pending_attachment_alt.dart index 038e662..4f56db0 100644 --- a/lib/widgets/attachment/pending_attachment_alt.dart +++ b/lib/widgets/attachment/pending_attachment_alt.dart @@ -1,6 +1,5 @@ import 'package:easy_localization/easy_localization.dart'; import 'package:flutter/material.dart'; -import 'package:gap/gap.dart'; import 'package:provider/provider.dart'; import 'package:surface/controllers/post_write_controller.dart'; import 'package:surface/providers/sn_attachment.dart'; diff --git a/lib/widgets/chat/chat_message.dart b/lib/widgets/chat/chat_message.dart index de1f150..53a4b4d 100644 --- a/lib/widgets/chat/chat_message.dart +++ b/lib/widgets/chat/chat_message.dart @@ -158,8 +158,7 @@ class ChatMessage extends StatelessWidget { AttachmentList( data: data.preload!.attachments!, bordered: true, - gridded: true, - noGrow: true, + // gridded: true, maxHeight: 560, minWidth: 480, padding: const EdgeInsets.only(top: 8), diff --git a/lib/widgets/chat/chat_message_input.dart b/lib/widgets/chat/chat_message_input.dart index 0aa19ab..04c630f 100644 --- a/lib/widgets/chat/chat_message_input.dart +++ b/lib/widgets/chat/chat_message_input.dart @@ -11,7 +11,6 @@ import 'package:surface/providers/user_directory.dart'; import 'package:surface/types/attachment.dart'; import 'package:surface/types/chat.dart'; import 'package:surface/widgets/dialog.dart'; -import 'package:surface/widgets/markdown_content.dart'; import 'package:surface/widgets/post/post_media_pending_list.dart'; class ChatMessageInput extends StatefulWidget {