Flutter Sample App [Flutter UI Kit]

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:

../../../.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.

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

1 Like

Hello, are there any updates regarding this issue?

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

Hello, thanks for getting back.

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

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

1 Like

@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.

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

1 Like

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

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

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

1 Like

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

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.

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.

1 Like

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).

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

1 Like

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.

Hello, I have shared the same through the Github issue, see Example Not Running · Issue #61 · AmityCo/Flutter_sample_uikit (github.com).