# Flutter sample

**URL:** <https://forum.social.plus/t/flutter-sample/813>\
**Category:** General\
**Created:** [July 12, 2023, 1:46pm UTC](https://forum.social.plus/t/flutter-sample/813 "2023-07-12T13:46:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 12, 2023, 1:46pm UTC](https://forum.social.plus/t/flutter-sample/813/1 "2023-07-12T13:46:47Z")

</div>

Hello,  
I’m learning the product and the sample not working  
await widget.amityPost  
.edit()  
.text(text)  
.image(attachments)- The method ‘image’ isn’t defined for the type ‘AmityTextPostEditorBuilder’  
.metadata(metadata)  
.mentionUsers(mentionUsers.map((e) =\> e.userId!).toList())  
.build()  
.update();

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 12, 2023, 1:51pm UTC](https://forum.social.plus/t/flutter-sample/813/2 "2023-07-12T13:51:11Z")

</div>

Hello, to assist you better, could you please provide us with more details about what you are trying to achieve? Also, could you please provide information about the error or issue you are currently facing when you mentioned that it’s not working?

---

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 12, 2023, 2:03pm UTC](https://forum.social.plus/t/flutter-sample/813/3 "2023-07-12T14:03:02Z")

</div>

Thanks for the quick reply.  
I’m learning Amity social product.  
Downloaded the Flutter sample, to my Android Studio + mobile device.  
I changed the following line in pubspec.yaml  
amity\_sdk:  
path: …/Amity-Social-Cloud-SDK-Flutter-Internal  
to  
amity\_sdk: ^0.21.0

Pub get was OK  
But in the file update\_post\_screen.dart  
I have 3 errors on await widget.amityPost

```
    await widget.amityPost
        .edit()
        .text(text)
        .image(attachments)
        .metadata(metadata)
        .mentionUsers(mentionUsers.map((e) => e.userId!).toList())
        .build()
        .update();

  await widget.amityPost
      .edit()
      .text(text)
      .file(attachments)
      .metadata(metadata)
      .mentionUsers(mentionUsers.map((e) => e.userId!).toList())
      .build()
      .update();

  await widget.amityPost
      .edit()
      .text(text)
      .video(attachments)
      .metadata(metadata)
      .mentionUsers(mentionUsers.map((e) => e.userId!).toList())
      .build()
      .update();

```

The error  
The method ‘image’ isn’t defined for the type ‘AmityTextPostEditorBuilder’. (Documentation) Try correcting the name to the name of an existing method, or defining a method named ‘image’.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 12, 2023, 2:43pm UTC](https://forum.social.plus/t/flutter-sample/813/4 "2023-07-12T14:43:37Z")

</div>

Currently, updating images in an image post is not yet supported in Flutter. This limitation is documented in our Flutter documentation at the following link: [https://docs.amity.co/social/posts/create-post/image-post](https://docs.amity.co/social/posts/create-post/image-post)

 ![Screenshot 2566-07-12 at 15.40.37](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/7c3e298cd4956bf1d7f867b0ed9c3e760aa8a10a.png)

---

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 12, 2023, 3:17pm UTC](https://forum.social.plus/t/flutter-sample/813/5 "2023-07-12T15:17:55Z")

</div>

Thanks I will remove it and try again

---

<div class="post-metadata">

**Author:** ![meridork](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@meridork](https://forum.social.plus/u/meridork)\
**Post date:** [July 12, 2023, 3:24pm UTC](https://forum.social.plus/t/flutter-sample/813/6 "2023-07-12T15:24:39Z")

</div>

Thanks It is working
