Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Image' is imported from both 'package #110

Open
88hwany opened this issue Aug 25, 2024 · 1 comment
Open

'Image' is imported from both 'package #110

88hwany opened this issue Aug 25, 2024 · 1 comment

Comments

@88hwany
Copy link

88hwany commented Aug 25, 2024

Flutter 3.24.1
giffy_dialog: ^2.1.0

I am getting the following build error:
==>
../../../../.pub-cache/hosted/pub.dev/giffy_dialog-2.1.0/lib/src/giffy_modal.dart:5:1: Error: 'Image' is imported from both 'package:flutter/src/widgets/image.dart' and 'package:rive/src/rive_core/shapes/image.dart'.
import 'package:rive/rive.dart';
^^^^^
Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command '/Users/lee/ToolKits/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 34s
Running Gradle task 'bundleRelease'... 34.7s
Gradle task bundleRelease failed with exit code 1

@alamsyahh15
Copy link

alamsyahh15 commented Sep 3, 2024

Screenshot 2024-09-03 at 14 24 56

I think this issue in file giffy_modal.dart in line 5, if this package using multiple Image classes from rive and material please owner add prefix in rive import like this

import 'package:rive/rive.dart' as rive ;

When this package using load image by Image class is one of the packages

import 'package:flutter/material.dart' hide Image ;

Or

import 'package:rive/rive.dart' hide Image ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants