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

Conflicting 'Image' declaration #77

Open
g7i opened this issue Dec 11, 2024 · 1 comment
Open

Conflicting 'Image' declaration #77

g7i opened this issue Dec 11, 2024 · 1 comment

Comments

@g7i
Copy link

g7i commented Dec 11, 2024

Whenever I import faker, Image from flutter stops working with an error. Consider an alternative name for your implementation?

The name 'Image' is defined in the libraries 'package:faker/ src/ image. dart (via package:faker/ faker. dart)' and 'package:flutter/ src/ widgets/ image. dart'. (Documentation) 

Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.
@g7i
Copy link
Author

g7i commented Dec 11, 2024

For now I'm hiding the import

import 'package:faker/faker.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

1 participant