Chat attachments

This commit is contained in:
2024-05-26 21:03:25 +08:00
parent 9cb2b9122e
commit c3bf0a19b8
5 changed files with 27 additions and 5 deletions

View File

@ -45,7 +45,7 @@ class _PostPublishingScreenState extends State<PostPublishingScreen> {
List<int> _attachments = List.empty();
void showAttachments(BuildContext context) {
void showAttachments() {
showModalBottomSheet(
context: context,
builder: (context) => AttachmentPublishingPopup(
@ -258,7 +258,7 @@ class _PostPublishingScreenState extends State<PostPublishingScreen> {
TextButton(
style: TextButton.styleFrom(shape: const CircleBorder()),
child: const Icon(Icons.camera_alt),
onPressed: () => showAttachments(context),
onPressed: () => showAttachments(),
)
],
),