Skip to content

Instantly share code, notes, and snippets.

@pratikbutani
Last active March 6, 2021 07:29
Show Gist options
  • Save pratikbutani/be7c0afcd48607f1e84bdb0372d9da37 to your computer and use it in GitHub Desktop.
Save pratikbutani/be7c0afcd48607f1e84bdb0372d9da37 to your computer and use it in GitHub Desktop.
Flutter 2 version conflict dependencies. Solution: How to use "dependency_overrides"
# THIS IS OLD pubspec.yaml WHICH IS USED BEFORE UPGRADED FLUTTER 2.
dependencies:
build_runner: ^1.10.11
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.0
# animated_splash: ^1.0.0
google_fonts: ^1.1.1
rxdart: ^0.25.0
http: ^0.12.2
shared_preferences: ^0.5.12+4
firebase_auth: ^0.20.0+1
firebase_analytics: ^7.0.1
firebase_core: ^0.7.0
firebase_messaging: ^8.0.0-dev.14
firebase_remote_config: ^0.6.0
#firebase_crashlytics: ^0.4.0+1
fluttertoast: ^7.1.1
json_annotation: ^3.1.1
path: ^1.7.0
provider: ^4.3.2+3
flutter_swiper: ^1.1.6
auto_size_text: ^2.1.0
sizer: ^1.1.7
share: any #for share app to social Media
webview_flutter: ^1.0.7
flappy_search_bar: ^1.7.2
intl: ^0.16.1 #Date Formatting
flutter_linkify: ^4.0.2 #on click make direct call or email
path_provider: ^1.6.24
solid_bottom_sheet: ^0.1.9
url_launcher: ^5.7.10 #for url launcher
geolocator: ^6.1.13 # For Location Information (Getting Location Details on Login or Register)
device_info: ^1.0.0 # For Device Information (Getting Unique Identifier on Login or Register)
flutter_local_notifications: ^4.0.0
pin_entry_text_field: ^0.1.4 # OTP Text Fields
connectivity: ^2.0.2 # Internet Checking
image_picker: ^0.6.7+21 # To Pick Image from Gallery or Camera
event_bus: ^1.1.1 #change value between two screens
package_info: ^0.4.3+4
week_of_year: ^1.0.1
#razorpay_flutter: ^1.2.3
upi_india: ^2.2.0+1
dev_dependencies:
json_serializable: ^3.5.1
flutter_test:
sdk: flutter
# THIS IS NEW pubspec.yaml WHICH I AM USING AFTER UPGRADING FLUTTER 2.
# MUST WATCH Section: dependency_overrides WHICH IS IMPORTANT.
dependencies:
build_runner: ^1.11.5
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.2
# animated_splash: ^1.0.0
#firebase_crashlytics: ^0.4.0+1
fluttertoast: ^7.1.8
json_annotation: ^4.0.0
path: ^1.8.0
provider: ^5.0.0
flutter_swiper: ^1.1.6
auto_size_text: ^2.1.0
sizer: ^1.1.8
share: any #for share app to social Media
webview_flutter: ^2.0.2
flappy_search_bar: ^1.7.2
#on click make direct call or email
flutter_linkify: ^5.0.0
path_provider: ^2.0.1
solid_bottom_sheet: ^0.1.9
# For Location Information (Getting Location Details on Login or Register)
geolocator: ^7.0.1
pin_entry_text_field: ^0.1.4 # OTP Text Fields
# Internet Checking
connectivity: ^3.0.2
# To Pick Image from Gallery or Camera
image_picker: ^0.7.2
#change value between two screens
event_bus: ^2.0.0
package_info: ^2.0.0
week_of_year: ^1.0.1
#razorpay_flutter: ^1.2.3
upi_india: ^2.2.0+1
rxdart: ^0.26.0
firebase_analytics: ">=7.0.1"
firebase_analytics_web: ^0.2.0
device_info_platform_interface: ^2.0.1
google_fonts: ^2.0.0
url_launcher: ^6.0.2 #for url launcher
#Date Formatting
intl: ^0.17.0
http: ^0.13.0
device_info: ^2.0.0 # For Device Information (Getting Unique Identifier on Login or Register)
http_parser: ^4.0.0
shared_preferences: ^2.0.3
image_picker_platform_interface: ^2.0.1
dependency_overrides:
firebase_auth: ">=1.0.0"
firebase_core: ">=0.7.0"
firebase_messaging: ">=8.0.0-dev.14"
firebase_remote_config: ">=0.6.0"
firebase_auth_web: ">=0.2.0"
firebase: ">=7.0.0"
flutter_local_notifications: ">=4.0.0"
dev_dependencies:
json_serializable: ^4.0.2
flutter_test:
sdk: flutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment