Dependence incompatible in my flutter project - flutter

[source] flutter.bat pub get
Running "flutter pub get" in source...
Because rate_my_app >=0.6.0+3 depends on shared_preferences ^0.5.7 and fstore depends on shared_preferences 0.5.3+4, rate_my_app >=0.6.0+3 is forbidden.
So, because fstore depends on rate_my_app ^0.6.1+2, version solving failed.
pub get failed (1; So, because fstore depends on rate_my_app ^0.6.1+2, version solving failed.)
exit code 1
Here is my pubspec.yaml:
name: fstore
description: Mobile commerce app by Flutter
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# `enter code here`https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.3.0+1
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
logs:
git: https://github.com/pq/logs
flutter:
sdk: flutter
intl: 0.16.1
http: 0.12.0+2
html_unescape: 1.0.1+3
provider: ^3.0.0+1
flutter_signin_button: ^0.2.8
after_layout: 1.0.7+2
font_awesome_flutter: ^8.5.0
path: 1.7.0
flutter_facebook_login: ^2.0.1
flutter_account_kit: 0.7.0
vector_math: 2.0.8
carousel_pro: ^1.0.0
flutter_widget_from_html_core: ^0.2.2+1
configurable_expansion_tile: ^1.0.0
timeago: ^2.0.18
share: ^0.6.2+1
validate: ^1.7.0
country_pickers: ^1.1.0
shared_preferences: ^0.5.7
firebase_messaging: 5.1.2
firebase_analytics: 4.0.2
transparent_image: 1.0.0
pull_to_refresh: ^1.5.0
localstorage: ^2.0.0
notification_permissions: ^0.4.0
flare_splash_screen: 2.1.3
rate_my_app: ^0.6.0+3
flutter_range_slider: ^1.3.1
page_indicator: ^0.2.0
global_configuration: ^1.1.0
extended_image: 0.5.3
flutter_screenutil: 0.5.3
fluttertoast: ^3.1.0
intro_slider: ^2.2.5
url_launcher: ^5.1.0
firebase_core: ^0.4.0+8
firebase_auth: ^0.11.1+12
cloud_firestore: ^0.12.7+1
firestore_ui: ^1.6.0
flutter_webview_plugin: ^0.3.5
connectivity: ^0.4.3+6
random_string: ^1.1.0
google_maps_flutter: 0.5.19+2
place_picker: 0.9.8
cached_network_image: ^2.0.0-rc
firebase_storage: ^3.0.4
image_picker: ^0.6.0+17
fab_circular_menu: 0.1.1
uuid: ^2.0.2
flutter_localizations:
sdk: flutter
dev_dependencies:
flutter_launcher_icons: ^0.7.2+1
flutter_test:
sdk: flutter
# Run this script to generate the app icon: flutter pub pub run flutter_launcher_icons:main
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/images/app_icon.png"
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
assets:
- lib/common/config.json
- assets/icons/categories/
- assets/icons/tabs/
- assets/icons/profile/
- assets/icons/payment/
- assets/images/
- assets/images/country/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.io/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
fonts:
- family: Raleway
fonts:
- asset: assets/fonts/Raleway-Regular.ttf
- asset: assets/fonts/Raleway-Medium.ttf
- asset: assets/fonts/Raleway-Bold.ttf
- asset: assets/fonts/Raleway-Light.ttf
- asset: assets/fonts/Raleway-Thin.ttf
- family: Roboto
fonts:
- asset: assets/fonts/Roboto-Regular.ttf
- asset: assets/fonts/Roboto-Medium.ttf
- asset: assets/fonts/Roboto-Bold.ttf
- asset: assets/fonts/Roboto-Light.ttf
- asset: assets/fonts/Roboto-Thin.ttf
#
# For details regarding fonts from package dependencies,
# see https://flutter.io/custom-fonts/#from-packages
I have this problem how can i solve it?

I'd suggest looking here:
https://dart.dev/tools/pub/dependencies#dependency-overrides
You can override the version number of all dependencies, but be careful as later versions might contain breaking changes that your dependencies might not work with.

In your pubspec.yaml file, add this:
dependency_overrides:
rate_my_app: ^0.6.0+3

I have solved this. You need to update the rate_my_app to 0.6.0+3 and shared_preferences to 0.5.7+3 and then hit packages get.

Related

CardinalComm SDK 60 Warning Template - Id Bridging in Flutter

I am using the CardinalComm SDK in my Flutter application, and I am seeing a warning message that says "Id Bridging". Google gave me this warning and I need help to resolve it.
I have reviewed the documentation for the CardinalComm SDK and the Flutter packages that I am using, but I cannot find any information on how to address this warning. I have also checked the logs and debugging output from my application, but I cannot find any additional clues about the cause of the problem.
Does anyone have experience with this issue and know how to resolve it? Any suggestions or guidance would be greatly appreciated. Thank you
Here's my pubsec yaml
`
name: Iweydii
description:Buy and sell in Somalia.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.6.0+7
publish_to: none
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
carousel_slider: 4.0.0
collection: ^1.15.0-nullsafety.4
community_material_icon: ^5.9.55
connectivity: 3.0.6
# easy_localization: 3.0.0
easy_localization: any
file_picker: 4.2.4
firebase_auth: 3.1.5
firebase_core: 1.19.1
firebase_database: 8.1.0
firebase_dynamic_links: 3.0.0
firebase_messaging: 11.0.0
flutter:
sdk: flutter
flutter_better_camera: 1.0.2+1
flutter_braintree: 2.1.0
flutter_credit_card: 3.0.1
flutter_datetime_picker:
path: packages/flutter_datetime_picker
flutter_facebook_auth: 3.5.6
flutter_html: 2.2.1
flutter_linkify: 5.0.2
flutter_localizations:
sdk: flutter
flutter_map: 0.14.0
flutter_map_tappable_polyline: 3.1.0
flutter_native_image: 0.0.6+1
flutter_paystack: ^1.0.5+1
flutter_stripe: 2.1.0
flutter_svg: 0.23.0+1
flutter_tabler_icons: ^1.1.1
flutter_video_info: 1.2.0
fluttericon: 2.0.0
lottie: ^1.2.0
fluttertoast: 8.0.8
geocode: 1.0.1
geolocator: 8.0.1
google_maps_flutter: 2.1.0
google_mobile_ads: ^1.2.0
google_sign_in: 5.2.1
group_radio_button: 1.1.0
http: 0.13.4
in_app_purchase: 1.0.9
intl: 0.17.0
latlong2: 0.8.1
launch_review: 3.0.1
multi_image_picker: 4.8.1
ntp: 2.0.0
optimized_cached_image: 3.0.0
package_info: 2.0.2
path_provider: 2.0.6
permission_handler: 8.3.0
permission_handler_platform_interface: 3.7.0
photo_view: 0.13.0
progress_dialog_null_safe: 1.0.6
provider: 6.0.1
razorpay_flutter: 1.2.7
rename: ^2.0.1
sembast: 3.1.1
share: 2.0.4
shared_preferences: 2.0.8
shimmer: 2.0.0
the_apple_sign_in: 1.1.1
theme_manager: 1.1.0
url_launcher: 6.0.12
video_player: 2.2.7
video_thumbnail: 0.4.3
visibility_detector: 0.2.2
firebase_analytics: ^8.1.1
webview_flutter: ^2.2.0
share_files_and_screenshot_widgets: ^1.0.6
showcaseview: ^1.1.8
scroll_navigation: ^1.3.2
cloud_firestore: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
# flutter_test:
sdk: flutter
dependency_overrides:
firebase_messaging_platform_interface: 3.1.6
firebase_auth_platform_interface: 6.1.11
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/placeholder_circle_image.png
- assets/images/placeholder_image.png
- assets/langs/en-US.json
- assets/langs/so-SO.json
# - assets/images/verify_email_icon.jpg
- assets/images/down.png
# - assets/images/baesline_access_time_black_24.png
# - assets/images/baseline_check_green_24.png
- assets/images/baseline_graph_black_24.png
- assets/images/baseline_price_down_black_24.png
# - assets/images/chat.png
- assets/images/seo.png
- assets/images/upload.png
- assets/images/baseline_price_up_black_24.png
- assets/images/baseline_empty_item_grey_24.png
# - assets/images/home_icon/easy_payment.png
# - assets/images/home_icon/featured_products.png
# - assets/images/home_icon/free_download.png
- assets/images/trending.png
- assets/images/flutter_buy_and_sell_logo.png
- assets/images/flutter_buy_and_sell_logo_light.png
- assets/images/baseline_pin_black_24.png
- assets/images/baseline_favourite_grey_24.png
- assets/images/default_image.png
# - assets/images/baseline_promotion_color_74.png
- assets/images/user_default_photo.png
- assets/images/loaction_illustration.svg
- assets/images/slider_1.svg
- assets/images/slider_2.svg
- assets/images/slider_3.svg
# icons for the app
# - assets/images/app_icons/search.svg
- assets/lottie/loginaccount.json
# example:
fonts:
- family: Product Sans
fonts:
- asset: assets/fonts/Product-Sans-Regular.ttf
- asset: assets/fonts/Product-Sans-Bold-Italic.ttf
- asset: assets/fonts/Product-Sans-Bold.ttf
- asset: assets/fonts/Product-Sans-Italic.ttf
# fonts:
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
`
I couldnt solve on my own

how to resolve this problem in flutter.bat i don't understand anything

Error: No named parameter with the name 'nullOk'.
../…/src/extended_image.dart:786
_invertColors = MediaQuery.of(context, nullOk: true)?.invertColors ??
^^^^^^
: Context: Found this candidate, but the arguments don't match.
../…/widgets/media_query.dart:818
static MediaQueryData of(BuildContext context) {
^^
2
FAILURE: Build failed with an exception.
Where:
Script 'C:\src\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1035
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\src\flutter\flutter\bin\flutter.bat'' 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 59s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
name: pubx
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.17.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
auto_size_text: ^3.0.0
pixel_perfect: ^1.1.1
get: 4.5.1
extended_image: ^2.0.0
like_button: ^2.0.5
fluttericon: ^2.0.0
google_nav_bar: ^5.0.6
flutter_switch: ^0.0.2
story_view: ^0.12.8
share: ^2.0.4
flutter_share: ^2.0.0
flutter_native_splash: ^0.3.2
google_fonts: ^1.1.2
get_storage: ^1.2.1
flutter_secure_storage: ^4.2.1
image_cropper: ^1.5.1
cached_network_image: ^2.5.1
connectivity_plus: ^0.8.1
sqflite: ^2.0.2
path_provider: ^1.6.28
path: ^1.8.0
equatable: ^2.0.5
#flutter_bloc: ^7.1.0
intl_phone_number_input: ^0.1.2
vibration: ^1.7.6
sound_mode: ^2.0.2
flutter_facebook_auth: ^2.0.2+1
#flutter_facebook_auth: ^3.0.0-nullsafety.0
google_sign_in: ^5.1.0
http: ^0.12.2
#firebase_auth: ^0.16.1
#firebase_core: ^0.4.4
dev_dependencies:
flutter_test:
sdk: flutter
dio: ^3.0.10
jwt_decode:
flutter_spinkit: any
image_picker: ^0.6.7+6
image_gallery_saver: any
# image_picker: any
provider: ^5.0.0
permission_handler: any
shared_preferences: any
shimmer: ^2.0.0
# flutter_local_notifications: any
font_awesome_flutter: ^9.1.0
#keyboard_actions: any
# flutter_3d_choice_chip: ^0.1.4
# Shared_preferences: ^0.5.7+1
# firebase_messagering: ^6.0.13
flutter_local_notifications: ^1.4.3
# cached_network_image: ^2.1.0+1
# image_cropper: ^1.2.1
# photo_view: ^0.9.2
# url_launcher: ^5.4.10
# video_thumbnail: ^0.5.0
keyboard_actions: any
# flutter_3d_choice_chip: ^0.1.4
# Shared_preferences: ^0.5.7+1
# firebase_messagering: ^6.0.13
#flutter_local_notifications: ^1.4.3
# cached_network_image: ^2.1.0+1
# image_cropper: ^1.2.1
# photo_view: ^0.9.2
# url_launcher: ^5.4.10
# video_thumbnail: ^0.5.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
flutter_native_splash:
color: "#ffffff"
color_dark: "#272727"
image: 'assets/images/logo-PubX-Mobile.png'
image_dark: 'assets/images/logo-PubX-Mobile.png'
android_12:
image: 'assets/images/logo-PubX-Mobile.png'
icon_background_color: "#ffffff"
image_dark: 'assets/images/logo-PubX-Mobile.png'
icon_background_color_dark: "#272727"
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
generate: true
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/images/photos/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages

flutter location package version conflict with google_map_location_picker

I download a source code from codecanyone but
I am facing the following issue when adding google_map_location_picker package
Because location 4.3.0 depends on location_platform_interface ^2.3.0 and no versions of location_platform_interface match >2.3.0 <3.0.0, location 4.3.0 requires location_platform_interface 2.3.0.
And because location_platform_interface 2.3.0 depends on plugin_platform_interface ^2.0.0 and geolocator_platform_interface <2.0.0-nullsafety.0 depends on plugin_platform_interface ^1.0.2, location 4.3.0 is incompatible with geolocator_platform_interface <2.0.0-nullsafety.0.
And because google_map_location_picker >=4.1.3 depends on geolocator ^6.1.14 which depends on geolocator_platform_interface ^1.0.8, location 4.3.0 is incompatible with google_map_location_picker >=4.1.3.
So, because markets depends on both google_map_location_picker 4.1.7 and location 4.3.0, version solving failed.
pub get failed (1; So, because markets depends on both google_map_location_picker 4.1.7 and location 4.3.0, version solving failed.)
here is my pubspec.yaml file
name: markets
description: markets
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.2.0
environment:
sdk: ">=2.2.2 <3.0.0"
module:
androidX: true
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: 1.0.4
google_maps_flutter: 2.1.1
google_map_location_picker: 4.1.7
mvc_pattern: 6.6.4+2
global_configuration: 2.0.0-nullsafety.1
html: 0.15.0
shared_preferences: 2.0.13
flutter_html: 3.0.0-alpha.2
flutter_svg: 1.0.3
location: 4.3.0
webview_flutter: 3.0.0
url_launcher: 6.0.20
cached_network_image: 3.2.0
fluttertoast: 8.0.8
flutter_staggered_grid_view: 0.4.0-nullsafety.3
intl_utils: 2.6.1
carousel_slider: 4.0.0
cloud_firestore: 3.1.8
firebase_auth: 3.3.7
firebase_core: 1.12.0
firebase_messaging: 11.2.6
firebase_storage: 8.0.0
image_picker: 0.7.5+4
string_validator: 0.3.0
platform: 3.1.0
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/cfg/
- assets/img/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
fonts:
- family: ProductSans
fonts:
- asset: assets/fonts/ProductSans-Thin.ttf
weight: 100
- asset: assets/fonts/ProductSans-Thin.ttf
weight: 200
- asset: assets/fonts/ProductSans-Light.ttf
weight: 300
- asset: assets/fonts/ProductSans-Regular.ttf
weight: 400
- asset: assets/fonts/ProductSans-Medium.ttf
weight: 500
- asset: assets/fonts/ProductSans-Bold.ttf
weight: 600
- asset: assets/fonts/ProductSans-Black.ttf
weight: 700
- asset: assets/fonts/ProductSans-Black.ttf
weight: 800
- asset: assets/fonts/ProductSans-Black.ttf
weight: 900
# - family: Trajan Pro
# fonts:
# - asset: assets/fonts/TrajanPro.ttf
# - asset: assets/fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-assets/fonts/#from-packages
flutter_intl:
enabled: true
You've just stumbled upon a Dependency Hell. google_map_location_picker is pretty old now (16 months already) and it uses outdated versions of other packages that some dependencies from the pubspec.yaml depends on itself.
If you remove google_map_location_picker from the dependencies everything installs smoothly. Your best option then would be to fork google_map_location_picker and change the dependencies yourself and point its dependency in the pubspec.yaml to this fork of yours.
To add the fork as a dependency, for example from Github, do something like this:
dependencies:
flutter:
sdk: flutter
carousel_pro:
git:
url: git://github.com/your_account/google_map_location_picker_fork.git
ref: main # branch name

flutter_whatsapp depends on both integration_test ^1.0.2+3 and flutter_driver any from sdk, version solving failed

Because every version of flutter_driver from sdk depends on vm_service 7.3.0 and integration_test 1.0.2+3 depends on vm_service >=4.2.0 <7.0.0, flutter_driver from sdk is incompatible with integration_test 1.0.2+3.
And because no versions of integration_test match >1.0.2+3 <2.0.0, flutter_driver from sdk is incompatible with integration_test ^1.0.2+3.
So, because flutter_whatsapp depends on both integration_test ^1.0.2+3 and flutter_driver any from sdk, version solving failed.
Running "flutter pub get" in flutter_whatsapp...
pub get failed (1; So, because flutter_whatsapp depends on both integration_test ^1.0.2+3 and flutter_driver any from sdk, version solving
failed.)
Am getting this kinda error
Thanks in advance...
name: flutter_whatsapp
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.3
ext_storage: ^1.0.3
intl: ^0.17.0
http: ^0.13.4
contacts_service: ^0.6.3
cached_network_image: ^3.1.0
camera: ^0.9.4+3
# video_player: ^0.10.0+5
path_provider: ^2.0.6
fluro: ^2.0.3
sliding_up_panel: ^2.0.0+1
flutter_app_badger: ^1.3.0
url_launcher: ^6.0.12
shared_preferences: ^2.0.8
android_intent: ^0.3.7+6
permission_handler: ^8.2.5
integration_test: ^1.0.2+3
uuid: ^3.0.5
# fast_qr_reader_view: ^0.1.5
# fast_qr_reader_view:
# git:
# url: git://github.com/facundomedica/fast_qr_reader_view.git
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
version: any
# test: ^1.5.0
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages

Facing the issue in pubspec.yaml

When i integrate the library new_version: ^0.2.0 in the project after pub get i get this error -
Because new_version >=0.0.7 depends on package_info_plus ^1.0.0 which depends on package_info_plus_platform_interface ^1.0.0, new_version >=0.0.7 requires package_info_plus_platform_interface ^1.0.0.
And because package_info_plus_platform_interface >=1.0.0-nullsafety.1 depends on plugin_platform_interface ^2.0.0 and file_picker 2.1.6 depends on plugin_platform_interface ^1.0.1, new_version >=0.0.7 is incompatible with file_picker 2.1.6.
So, because fstore depends on both file_picker 2.1.6 and new_version ^0.2.0, version solving failed.
pub get failed (1; So, because fstore depends on both file_picker 2.1.6 and new_version ^0.2.0, version solving failed.)
I don't understand what does it mean is this flutter version issue or sdk issue???
Here is the pubspec.yaml file where all the library has been integrate for the project, if i remove the new_version library project will work perfectly fine.
name: fstore
publish_to: "none"
description: Mobile commerce app by Flutter
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.0.0+3001
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# COMMON
inspireui:
path: ./modules/common_library
pedantic: 1.9.2
rubber:
git:
url: git://github.com/inspireui/rubber
country_pickers:
git:
url: git://github.com/inspireui/country_pickers.git
# FIREBASE PACKAGES
cloud_firestore: 0.14.4
firebase_analytics: 6.3.0
firebase_auth: 0.18.4+1
firebase_core: 0.5.3
firebase_database: 4.4.0
firestore_ui: 1.12.0
firebase_remote_config: ^0.4.3
# STATE MANAGEMENT
provider: 4.3.3
# UI
animated_splash: 1.0.0
animated_text_kit: 3.1.2
animations: 1.1.2
awesome_card: 1.1.0
carousel_pro: 1.0.0
configurable_expansion_tile: 1.0.0
country_code_picker: 1.7.0
custom_splash: 0.0.2
flare_splash_screen: 3.0.1
rive: 0.6.8
flash: 1.3.2
flutter_spinkit: 4.1.2+1
flutter_staggered_grid_view: 0.3.4
flutter_statusbarcolor: 0.2.3
flutter_swiper: 1.1.6
visibility_detector: 0.1.5
font_awesome_flutter: 8.11.0
image_picker: 0.6.7+15
file_picker: 2.1.6
multi_image_picker: 4.7.15
intro_slider: 2.3.4
liquid_swipe: 1.5.0
page_indicator: 0.3.0
percent_indicator: 2.1.9+1
pin_code_fields: 6.1.0
pull_to_refresh: 1.6.4
rate_my_app: 0.7.2
sticky_headers: 0.1.8+1
zoom_widget: 0.1.3
cupertino_icons: any
# WEB TOOLS
video_player: 2.0.0
html_unescape: 1.0.2
webview_flutter: 2.0.1
flutter_widget_from_html: 0.6.0-rc.2021030401
flutter_webview_plugin: 0.3.11
responsive_builder: 0.3.0
# MAP
google_maps_flutter: 1.2.0
location: 2.3.5 # use this version to compatible with fluxbuilder
# STORAGE
localstorage: 3.0.6+9 # depend on google font
shared_preferences: 2.0.3
# CONNECTIVITY
connectivity: 2.0.2
http: 0.13.0
http_auth: 0.3.1
uni_links: 0.4.0
firebase_dynamic_links: 0.6.3
# AUTHENTICATION
apple_sign_in: 0.1.0
flutter_facebook_login: 3.0.0
google_sign_in: 4.5.6
# PUSH NOTIFICATION
firebase_messaging: 7.0.3
notification_permissions: 0.4.8
onesignal_flutter: 2.6.2
# PAYMENTS
stripe_sdk:
git:
url: git://github.com/inspireui/stripe-sdk.git
razorpay_flutter: 1.2.3
# IMAGES
extended_image:
git:
url: git://github.com/inspireui/extended_image.git
transparent_image: 1.0.0
# ADS
facebook_audience_network: 0.7.1
firebase_admob: 0.10.3
# IN APP
new_version: ^0.2.0
# TOOLS
auto_size_text: 2.1.0
event_bus: 1.1.1
google_fonts: 2.0.0
random_string: 2.1.0
share: 0.6.5+4
sms_autofill: 1.3.1
json_annotation: 3.1.1
timeago: 3.0.1
universal_platform: ^0.1.3
uuid: 3.0.1
validate: 1.7.0
vector_math: any
async: 2.5.0
easy_debounce: 1.0.2
jwt_decoder: 1.0.4
charts_flutter: 0.9.0
flutter_image_compress: ^0.7.0
encrypt: 4.1.0
adaptive_breakpoints: 0.0.3
intl: 0.17.0
# For Shopify GraphQL
graphql: 3.1.0
flutter_localizations:
sdk: flutter
dev_dependencies:
flutter_test:
sdk: flutter
version: any
flutter_launcher_icons: 0.8.1
mockito: ^4.1.1 # Testing
#To run json serializer, run:
# flutter pub run build_runner build --build-filter="lib/models/serializers/*.dart" --delete-conflicting-outputs
# flutter pub run build_runner serve --build-filter="lib/models/serializers/*.dart"
build_runner: 1.11.1
json_serializable: 3.5.1
### Override the library to support Flutter 2.0
### Note: This will show the warning but will not impact to the app features 👍
dependency_overrides:
intl: 0.17.0
http: 0.13.0
crypto: 3.0.0
path_provider: 2.0.1
uuid: 3.0.1
http_parser: 4.0.0
shared_preferences: 2.0.3
pedantic: 1.9.2
flutter_svg: 0.19.3
extended_image:
git:
url: git://github.com/inspireui/extended_image.git
url_launcher: 6.0.1
cached_network_image: 2.5.0
fwfh_cached_network_image: ^0.6.0-rc.2021030401
modal_bottom_sheet: 2.0.0-nullsafety.1
# Run this script to generate the app icon: flutter pub run flutter_launcher_icons:main
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/images/app_icon.png"
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
uses-material-design: true
assets:
- lib/config/
- lib/config/mocks/
- lib/config/states/
- lib/config/stories/
- assets/icons/categories/
- assets/icons/tabs/
- assets/icons/payment/
- assets/images/
- assets/images/country/
- assets/images/favicon/
- assets/html/
- assets/google_fonts/
fonts:
- family: Feather
fonts:
- asset: assets/fonts/Feather.ttf
- family: SF Pro Display
fonts:
- asset: assets/fonts/SF-Pro-Display-Semibold.otf
weight: 700
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.io/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
#
# For details regarding fonts from package dependencies,
# see https://flutter.io/custom-fonts/#from-packages
flutter_intl:
enabled: true
You can do sth like this to force using a specific version
dependency_overrides:
package_info_plus_platform_interface: ^1.0.0
or
dependency_overrides:
plugin_platform_interface: ^2.0.0
Just write new_version: any, and get the pub. After that, get the suitable version from pubspec.lock. You will get the solusion.