Package conflict error on basicLocaleListResolution
Error: 'basicLocaleListResolution' is imported from both 'package:flutter/src/widgets/app.dart' and 'package:device_preview/src/locales/locales.dart'.
Flutter: Channel dev, 2.3.0-16.0.pre
Recreation: Ran the example provided with the above-mentioned flutter version
Im also reporting the same problem
I'm also facing the same issue
When can this issue be resolved please?
For now, the only solution is updating Flutter SDK
I think there is a branch with the fix in. I took a copy of the repo, merged the branch and included in the project using my GitHub URL
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: Brendan @.> Sent: Monday, August 9, 2021 9:31:00 AM To: aloisdeniel/flutter_device_preview @.> Cc: Alex Power @.>; Comment @.> Subject: Re: [aloisdeniel/flutter_device_preview] Package conflict error on basicLocaleListResolution (#130)
For now, the only solution is updating Flutter SDK
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/aloisdeniel/flutter_device_preview/issues/130#issuecomment-895043168, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHXS76366LYXAJBOWKSB5F3T36G4JANCNFSM45XXAKGA.
Are there any (documented) workarounds for this issue?
Flutter 2.5.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 4cc385b4b8 (6 days ago) • 2021-09-07 23:01:49 -0700
Engine • revision f0826da7ef
Tools • Dart 2.14.0
...
../../../../tools/flutter/.pub-cache/hosted/pub.dartlang.org/device_preview-0.7.1/lib/src/state/store.dart:78:31: Error: 'basicLocaleListResolution' is imported from both 'package:flutter/src/widgets/app.dart' and 'package:device_preview/src/locales/locales.dart'.
final defaultLocale = basicLocaleListResolution(
^^^^^^^^^^^^^^^^^^^^^^^^^
2
FAILURE: Build failed with an exception.
confirmed getting the same error as @gresnick on both windows 10 and Debian Linux 10 for flutter stable 2.5.0
confirmed getting the same error as @gresnick on both windows 10 and Debian Linux 10 for flutter stable 2.5.0
this PR fixes the issue , i was able to apply it and compile https://github.com/aloisdeniel/flutter_device_preview/pull/131/commits/d4d83e8eb8cc12363e1dc6467a65caf7e63ccab5
Had the same issue on device_preview: 0.7.1 with Flutter 2.5.2. Upgrading device_preview version to 0.7.4 fixed the issue