Flutter version failed - flutter

The current Flutter SDK version is 1.12.13+hotfix.8.
Because flutterbuyandsell depends on provider 4.1.2 which requires Flutter SDK version >=1.16.0, version solving failed.
pub get failed (1; Because flutterbuyandsell depends on provider 4.1.2 which requires Flutter SDK version >=1.16.0, version solving failed.)
My pubspec.yaml
name: flutterbuyandsell
description: A new Flutter ecommerce store application.
version: 1.17.0
environment:
sdk: ">=2.2.2 <3.0.0"
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.
shared_preferences: 0.5.7+3
cached_network_image: 2.2.0+1
flutter_cache_manager: 1.2.2 #for cached_network_image
http: 0.12.1
provider: 4.1.2
connectivity: 0.4.8+6
dynamic_theme: 1.0.1
sembast: 2.4.4+1
path_provider: 1.6.9
intl: 0.16.1
shimmer: 1.1.1
smooth_star_rating: 1.1.1
url_launcher: 5.4.10
carousel_slider: 2.1.0
firebase_core: 0.4.5
firebase_messaging: 6.0.16
firebase_auth: 0.16.1 # firebase_auth is for phone login
admob_flutter: 0.3.4
firebase_database: 3.1.6
google_sign_in: 4.5.1
flutter_facebook_login: 3.0.0
photo_view: 0.9.2
progress_dialog: 1.2.3
braintree_payment: 1.2.4
easy_localization: 2.3.2
launch_review: 2.0.0
package_info: 0.4.0+18
flutter_icons: 1.1.0
stripe_payment: 1.0.7
flutter_credit_card: 0.1.3
fluttertoast: 4.0.1
permission_handler: 5.0.0+hotfix.6
flutter_map: 0.9.0
latlong: 0.6.1
geocoder: 0.2.1
multi_image_picker: 4.6.7
flutter_widget_from_html: 0.3.3+4
esys_flutter_share: 1.0.2
apple_sign_in: 0.1.0
dev_dependencies:
flutter_test:
sdk: flutter
#flutter_local_notifications:
# path: lib/utils/local_noti/
# 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/ar-DZ.json
- assets/langs/en-US.json
- assets/langs/hi-IN.json
- assets/langs/de-DE.json
- assets/langs/es-ES.json
- assets/langs/fr-FR.json
- assets/langs/id-ID.json
- assets/langs/it-IT.json
- assets/langs/ja-JP.json
- assets/langs/ko-KR.json
- assets/langs/ms-MY.json
- assets/langs/pt-PT.json
- assets/langs/ru-RU.json
- assets/langs/th-TH.json
- assets/langs/tr-TR.json
- assets/langs/zh-CN.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/baseline_price_up_black_24.png
- assets/images/baseline_empty_item_grey_24.png
- assets/images/home_icon/discount_products.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
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

The latest version of flutter on the stable channel is 1.17.3 and higher on the other channels. You have likely not upgraded flutter since this release. Use flutter upgrade to remediate your issue.

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

I am not able to get dependencies for my flutter project - Flutter pub get issues

How can i resolve this error, please I need help to get this resolved.
I am using the flutter dev channel
How can I resolve this error, please I need help to get this resolved.
Tried flutter channel dev also tried to flutter upgrade but nothing worked.
Please help me with it thanks
Because every version of flutter_test from sdk depends on async 2.6.1 and fstore depends on async 2.5.0, flutter_test from sdk is forbidden.
So, because fstore depends on flutter_test any from sdk, version solving failed.
pub finished with exit code 1
My pubspec.yaml
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.1.0+3018
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# Base
pedantic: ^1.11.0
intl: 0.17.0
# COMMON
inspireui:
path: ./modules/common_library
rubber:
git:
url: git://github.com/inspireui/rubber
country_pickers:
git:
url: git://github.com/inspireui/country_pickers.git
# FIREBASE PACKAGES
firebase_core: 1.1.0
firebase_analytics: 8.0.2
firebase_auth: 1.1.2
cloud_firestore: 1.0.7
firebase_remote_config: 0.9.0-dev.0
firebase_dynamic_links: 2.0.2
firestore_ui:
git:
url: git://github.com/inspireui/firestore_ui.git
# STATE MANAGEMENT
provider: 5.0.0
get_it: 6.1.1
event_bus: 2.0.0
# SPLASH SCREEN, ONBOARDING
animated_splash: 1.0.0
custom_splash: 0.0.2
flare_splash_screen: 4.0.0
rive: 0.7.3
liquid_swipe: 2.1.0
# UI
animated_text_kit: 4.2.1
animations: 2.0.0
awesome_card: 1.1.5
carousel_pro: 1.0.0
configurable_expansion_tile: 1.0.0
country_code_picker: 2.0.1
flash: 1.5.2
flutter_spinkit: 5.0.0
flutter_staggered_grid_view: 0.4.0
flutter_statusbarcolor: 0.2.3
flutter_swiper: 1.1.6
visibility_detector: 0.2.0
font_awesome_flutter: 9.0.0
file_picker: 3.0.1
page_indicator: 0.4.1
percent_indicator: 3.0.1
pull_to_refresh: 1.6.5
rate_my_app: ^1.1.0+1
cupertino_icons: any
implicitly_animated_reorderable_list: 0.4.0
pin_code_fields: 7.0.0
# WEB TOOLS
html_unescape: 2.0.0
webview_flutter: 2.0.4
flutter_widget_from_html: 0.6.0
flutter_webview_plugin: 0.3.11
responsive_builder: 0.4.1
# MAP
google_maps_flutter: 2.0.3
location: 2.3.5
# STORAGE
localstorage: ^4.0.0+1
# CONNECTIVITY
http: 0.13.2
http_auth: 1.0.0
uni_links: 0.4.0
share: 2.0.1
# AUTHENTICATION
apple_sign_in: 0.1.0
flutter_facebook_login: 3.0.0
google_sign_in: 5.0.2
sms_autofill: 2.0.0
# PUSH NOTIFICATION
firebase_messaging: 9.1.3
notification_permissions: 0.5.0
onesignal_flutter: 2.6.3
# PAYMENTS
stripe_sdk:
git:
url: git://github.com/inspireui/stripe-sdk.git
razorpay_flutter: 1.2.5
# IMAGES
transparent_image: 2.0.0
extended_image: 4.0.1
fwfh_cached_network_image: 0.6.0
image_picker: 0.7.4
multi_image_picker: 4.8.0
flutter_image_compress: 1.0.0
# VIDEOS
video_player: 2.1.1
youtube_player_iframe:
git:
url: git://github.com/inspireui/youtube_player_flutter.git
path: packages/youtube_player_iframe
# ADS
facebook_audience_network: 0.7.1
google_mobile_ads: 0.12.1+1
# TOOLS
auto_size_text: 2.1.0
google_fonts: 2.0.0
random_string: 2.1.0
json_annotation: 4.0.1
timeago: 3.0.2
universal_platform: ^1.0.0-nullsafety
uuid: 3.0.4
validate: 1.7.0
vector_math: any
async: 2.5.0
easy_debounce: 2.0.0
charts_flutter: 0.10.0
devicelocale: ^0.4.1
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
version: any
flutter_localizations:
sdk: flutter
test: any
flutter_launcher_icons: 0.8.1
mockito: ^4.1.1 # Testing
# vm_service: 5.5.0
## Enable 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.12.2
# json_serializable: 4.1.0
### 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.2
crypto: 3.0.1
path_provider: 2.0.1
uuid: 3.0.4
http_parser: 4.0.0
pedantic: 1.11.0
flutter_svg: 0.19.3
url_launcher: 6.0.1
cached_network_image: 2.5.1
modal_bottom_sheet: 2.0.0
args: 2.1.0
# 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/credit_cards/
- 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
Flutter Doctor Results
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 2.3.0-12.1.pre, on Microsoft Windows [Version 10.0.18363.1440], locale en-PK)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 3.6)
[√] Connected device (1 available)
• No issues found!

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.

Pubspec.yaml resolving version failed in master channel but works in stable channel in Flutter

I still cannot figure this thing out. I got this error message when I do flutter pub get:
Because no versions of flutter_i18n match >0.20.1 <0.21.0 and flutter_i18n 0.20.1 depends on intl ^0.16.0, flutter_i18n ^0.20.1 requires intl ^0.16.0.
And because every version of flutter_localizations from sdk depends on intl 0.17.0-nullsafety.2, flutter_i18n ^0.20.1 is incompatible with flutter_localizations from sdk.
So, because my_app depends on both flutter_localizations any from sdk and flutter_i18n ^0.20.1, version solving failed.
pub get failed (1; So, because my_app depends on both flutter_localizations any from sdk and flutter_i18n ^0.20.1, version solving failed.)
But I don't get this message in stable channel.
So far I always just switch back and forth. But I want to find the solution once and for all, because some tasks I need to do in master or dev channels.
Here is my pubspec.yaml file
environment:
sdk: ">=2.7.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# UI related packages
cupertino_icons: ^1.0.0
gradient_app_bar: ^0.1.3
bubbled_navigation_bar: ^0.0.4
titled_navigation_bar: ^3.6.0
bubble_tab_indicator: ^0.1.4
flutter_i18n: ^0.20.1
gradient_widgets: ^0.5.0
flutter_form_builder: ^3.14.0 # must be 3.14.0 because 3.14.1 will break
keyboard_dismisser: ^1.0.2
font_awesome_flutter: ^8.5.0
sliding_up_panel: ^1.0.2
lazy_load_scrollview: ^1.1.0
pull_to_refresh: ^1.6.2
scroll_to_index: ^1.0.6
date_time_format: ^1.0.0+4
like_button: ^1.0.1
# Login & App Store packages
flutter_facebook_login: ^3.0.0
google_sign_in: ^4.5.4
sign_in_with_apple: ^2.5.4
purchases_flutter: ^1.4.0
# Informing User / Loading
flutter_spinkit: ^4.0.0
progress_dialog: ^1.2.4
shimmer: ^1.1.1
flushbar: ^1.10.4
rflutter_alert: ^1.0.3
loading:
git:
url: git://github.com/leonzone/loading.git
path: loading
ref: 8f5a63f
# I/O, Cache & Databases
path: ^1.7.0
path_provider: ^1.6.16
shared_preferences: ^0.5.12+4
flutter_secure_storage: ^3.3.5
flutter_cache_manager: ^1.4.2
sembast: ^2.4.7+7
sembast_cloud_firestore_type_adapters:
git:
url: git://github.com/tekartik/sembast_flutter_more.dart
path: cloud_firestore_type_adapters
ref: dart2
version: '>=0.1.0'
# Code structure, connectivity & internal services
flutter_bloc: ^6.1.0
provider: ^4.3.2+2
http: ^0.12.1
equatable: ^1.2.5
simple_connectivity: ^0.1.1
network_image_to_byte: ^0.0.1
image_picker: ^0.6.7+11
image: ^2.1.14
package_info: ^0.4.1
flutter_device_type: ^0.2.0
audioplayers: 0.17.0
url_launcher: ^5.7.8
device_info: ^1.0.0
in_app_review: ^1.0.3
petitparser: ^3.0.2
convert: ^2.1.1
flutter_chips_input: ^1.9.3
vector_math: ^2.0.8
path_drawing: ^0.4.1
matrix_gesture_detector: ^0.1.0
# Social share packages
social_share_plugin: ^0.3.1+1
share: ^0.6.5+4
# Firebase packages
firebase_core: ^0.5.3
firebase_auth: ^0.18.4
cloud_firestore: ^0.14.4
firebase_storage: ^5.2.0
firebase_database: ^4.4.0
cloud_functions: ^0.7.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- assets/images/
- assets/i18n/
- assets/audio/
fonts:
- family: Varela Round
fonts:
- asset: fonts/VarelaRound-Regular.ttf
- family: Font Awesome
fonts:
- asset: fonts/FontAwesome-Regular.otf
And here is my flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.25.0-5.0.pre.141, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.51.1)
[✓] Connected device (2 available)
• No issues found!
Anyone knows whats wrong here?
Once again, I don't have this problem in stable channel.
Thanks a lot.
The dart and flutter teams are transitioning to null-safety feature. It is still in beta (that is why you get this error just with the beta channel). Not every package are already upgraded to null-sefety. You can fix this issue either by:
asking the developer of the package to upgrade to null safety
use a version of flutter which has not null-safety enabled
use a beta version of the package with null-sefty enabled
Check also this issue

Dependence incompatible in my flutter project

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