# Flutter Sample App \[Flutter UI Kit\]

**URL:** https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039
**Category:** Flutter
**Created:** [January 8, 2024, 6:21pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039 "2024-01-08T18:21:57Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 8, 2024, 6:21pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/1 "2024-01-08T18:21:57Z")

</div>

Hello, I am new to Amity, and I have been trying to integrate the Flutter Amity SDK UI Kit on a new Flutter project. No dependencies, just amity\_uikit\_beta\_service.

But, I can’t seem to get past these errors, possibly because of dependency issues:

My Flutter environment sdk is ‘\>=3.2.3 \<4.0.0’.

**Errors:**

```auto
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/gesture_page_view.dart:21:49: Error: Required named parameter 'devicePixelRatio' must be provided.
final PageMetrics _testPageMetrics = PageMetrics(
                                                ^
../../../Development/flutter/packages/flutter/lib/src/widgets/page_view.dart:258:3: Context: Found this candidate, but the arguments don't match.
  PageMetrics({
  ^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'ViewportOffset with ScrollMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../../Development/flutter/packages/flutter/lib/src/widgets/scroll_position.dart:178:16: Context: This is the overridden method ('copyWith').
abstract class ScrollPosition extends ViewportOffset with ScrollMetrics {
               ^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' has fewer named arguments than those of overridden method 'PageMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../../Development/flutter/packages/flutter/lib/src/widgets/page_view.dart:269:15: Context: This is the overridden method ('copyWith').
  PageMetrics copyWith({
              ^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:213:15: Error: The method 'ExtendedPagePosition.copyWith' doesn't have the named parameter 'devicePixelRatio' of overridden method 'PageMetrics.copyWith'.
  PageMetrics copyWith({
              ^
../../../Development/flutter/packages/flutter/lib/src/widgets/page_view.dart:269:15: Context: This is the overridden method ('copyWith').
  PageMetrics copyWith({
              ^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture/page_view/widgets/scroll_position.dart:221:23: Error: Required named parameter 'devicePixelRatio' must be provided.
    return PageMetrics(
                      ^
../../../Development/flutter/packages/flutter/lib/src/widgets/page_view.dart:258:3: Context: Found this candidate, but the arguments don't match.
  PageMetrics({
  ^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/gesture_detector/drag.dart:145:3: Error: The superclass, 'OneSequenceGestureRecognizer', has no unnamed constructor that takes no arguments.
  ExtendedDragGestureRecognizer({
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/extended_image-6.4.1/lib/src/extended_image.dart:975:36: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.
 - 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('../../../Development/flutter/packages/flutter/lib/src/painting/border_radius.dart').
 - 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('../../../Development/flutter/packages/flutter/lib/src/painting/border_radius.dart').
              borderRadius: widget.borderRadius,
                                   ^
../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/unregister_device_notification_usecase.dart:20:13: Error: The method 'NullThrownError' isn't defined for the class 'UnregisterDeviceNotificationUseCase'.
 - 'UnregisterDeviceNotificationUseCase' is from 'package:amity_sdk/src/domain/usecase/notification/unregister_device_notification_usecase.dart' ('../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/unregister_device_notification_usecase.dart').
Try correcting the name to the name of an existing method, or defining a method named 'NullThrownError'.
      throw NullThrownError();
            ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/register_device_notification_usecase.dart:21:13: Error: The method 'NullThrownError' isn't defined for the class 'RegisterDeviceNotificationUseCase'.
 - 'RegisterDeviceNotificationUseCase' is from 'package:amity_sdk/src/domain/usecase/notification/register_device_notification_usecase.dart' ('../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/register_device_notification_usecase.dart').
Try correcting the name to the name of an existing method, or defining a method named 'NullThrownError'.
      throw NullThrownError();
            ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/register_device_notification_usecase.dart:29:13: Error: The method 'NullThrownError' isn't defined for the class 'RegisterDeviceNotificationUseCase'.
 - 'RegisterDeviceNotificationUseCase' is from 'package:amity_sdk/src/domain/usecase/notification/register_device_notification_usecase.dart' ('../../../.pub-cache/hosted/pub.dev/amity_sdk-0.6.0/lib/src/domain/usecase/notification/register_device_notification_usecase.dart').
Try correcting the name to the name of an existing method, or defining a method named 'NullThrownError'.
      throw NullThrownError();
            ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/optimized_cached_image_provider.dart:87:40: Error: Type 'DecoderCallback' not found.
      OptimizedCacheImageProvider key, DecoderCallback decode);
                                       ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/optimized_cached_image_provider.dart:87:40: Error: 'DecoderCallback' isn't a type.
      OptimizedCacheImageProvider key, DecoderCallback decode);
                                       ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/_image_provider_io.dart:72:55: Error: Type 'DecoderCallback' not found.
      image_provider.OptimizedCacheImageProvider key, DecoderCallback decode) {
                                                      ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/_image_provider_io.dart:91:5: Error: Type 'DecoderCallback' not found.
    DecoderCallback decode,
    ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/_image_provider_io.dart:72:55: Error: 'DecoderCallback' isn't a type.
      image_provider.OptimizedCacheImageProvider key, DecoderCallback decode) {
                                                      ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/optimized_cached_image-3.0.1/lib/src/image_provider/_image_provider_io.dart:91:5: Error: 'DecoderCallback' isn't a type.
    DecoderCallback decode,
    ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_image.dart:32:48: Error: Type 'DecoderCallback' not found.
  ImageStreamCompleter load(BlurHashImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
                                               ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_image.dart:32:48: Error: 'DecoderCallback' isn't a type.
  ImageStreamCompleter load(BlurHashImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
                                               ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_widget.dart:218:42: Error: Type 'DecoderCallback' not found.
  ImageStreamCompleter load(UiImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
                                         ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/flutter_blurhash-0.7.0/lib/src/blurhash_widget.dart:218:42: Error: 'DecoderCallback' isn't a type.
  ImageStreamCompleter load(UiImage key, DecoderCallback decode) => OneFrameImageStreamCompleter(_loadAsync(key));
                                         ^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

```

---

<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: [January 9, 2024, 3:13am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/2 "2024-01-09T03:13:11Z")

</div>

Hello @andrewkimjoseph Let’s me check with my team and i’ll back to you soon.

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 9, 2024, 3:39pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/3 "2024-01-09T15:39:25Z")

</div>

Hello, are there any updates regarding this issue?

---

<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: [January 10, 2024, 4:33am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/4 "2024-01-10T04:33:08Z")

</div>

Hello @andrewkimjoseph ,

Apologies for the delay in resolving the reported issue. It’s an uncommon problem, and we’re investing time to understand it better. Our team is diligently working to pinpoint the cause, and we’ll keep you posted on any progress.

Thank you for your patience and understanding.

Best regards,  
Support team

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 10, 2024, 9:53am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/5 "2024-01-10T09:53:21Z")

</div>

Hello, thanks for getting back.

Do you confirm that there is indeed a problem with the Flutter UI Kit?

---

<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: [January 11, 2024, 11:38am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/6 "2024-01-11T11:38:02Z")

</div>

Hello,

I wanted to provide you with an update regarding the issue you reported. Our team has conducted a thorough investigation, and we’ve identified that the issue originates from our end. It has been categorized as a defect in our system.

Rest assured, our development team is actively working on resolving this matter. We will keep you informed and promptly notify you once the issue has been successfully addressed.

Thank you for your understanding and cooperation. If you have any additional questions or concerns in the meantime, feel free to reach out.

Best regards,  
Support team

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 11, 2024, 2:34pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/7 "2024-01-11T14:34:57Z")

</div>

@SocialPlus_Support, thank you for the feedback, and for keeping me in the loop.

Would you have an estimate of when you will be able to resolve the issue? That would help us in planning for our integration with your amazing tool, and the process is in a short timebox.

Kindly push on your side, and reply with an estimate of how long it will take.

Thanks,  
Andrew - Developer at Partify.

---

<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: [January 12, 2024, 8:46am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/8 "2024-01-12T08:46:15Z")

</div>

Hello @andrewkimjoseph it should be around early next week, we will keep you posted. Thank you.

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 15, 2024, 9:01am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/9 "2024-01-15T09:01:56Z")

</div>

Hello, @SocialPlus_Support, are there any updates with regards to this issue?

---

<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: [January 15, 2024, 1:14pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/10 "2024-01-15T13:14:44Z")

</div>

Hi there, we’re still working on it. We’ll let you know once it’s fixed.

---

<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: [January 16, 2024, 12:01pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/11 "2024-01-16T12:01:06Z")

</div>

Hello, we have released the fix, please pull the latest updates, and let us know if the issue still persists. Thank you.

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 16, 2024, 7:37pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/12 "2024-01-16T19:37:27Z")

</div>

Hello, thanks, will test the SDK and get back asap.

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 16, 2024, 7:44pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/13 "2024-01-16T19:44:54Z")

</div>

Just to clarify, @SocialPlus_Support, how do I go about integrating the new changes?

Do I add the SDK as a dependency pointing to a particular Github branch?

Or is it the usual:

dependencies:  
flutter:  
sdk: flutter

cupertino\_icons: ^1.0.2  
amity\_uikit\_beta\_service: ^0.2.0

Kindly advise on way forward.

---

<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: [January 17, 2024, 11:19am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/14 "2024-01-17T11:19:04Z")

</div>

Hello, to fetch the latest update for UIkit, please pull from the main branch on github: [GitHub - AmityCo/Amity-Social-UIKit-Flutter-Opensource: Amity Social Cloud offers Chat and Social SDKs to streamline app development. Dive into our UI Kits and sample apps in our repositories to spark your creativity. To learn more, visit amity.co.](https://github.com/AmityCo/Amity-Social-UIKit-Flutter-Opensource)

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 17, 2024, 1:03pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/15 "2024-01-17T13:03:56Z")

</div>

Already did, raised a follow-up issue since the example is not running, see [Example Not Running · Issue #61 · AmityCo/Flutter\_sample\_uikit (github.com)](https://github.com/AmityCo/Flutter_sample_uikit/issues/61).

---

<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: [January 17, 2024, 2:20pm UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/16 "2024-01-17T14:20:38Z")

</div>

Noted on this; I’ve forwarded it to the team for investigation.

---

<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: [January 18, 2024, 6:00am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/17 "2024-01-18T06:00:46Z")

</div>

Hello @andrewkimjoseph , Thank you for bringing the issue to our attention. To further investigate and address the matter effectively, we kindly request additional information from your end.

We will reach out to you via email shortly. Kindly check your inbox and provide the necessary details to assist us in resolving the issue promptly.

---

<div class="post-metadata">

### Author: ![andrewkimjoseph](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@andrewkimjoseph](https://forum.social.plus/u/andrewkimjoseph)
#### Post date: [January 18, 2024, 6:10am UTC](https://forum.social.plus/t/flutter-sample-app-flutter-ui-kit/1039/18 "2024-01-18T06:10:39Z")

</div>

Hello, I have shared the same through the Github issue, see [Example Not Running · Issue #61 · AmityCo/Flutter\_sample\_uikit (github.com)](https://github.com/AmityCo/Flutter_sample_uikit/issues/61).
