surveysparrow / surveysparrow-flutter-sdk

SurveySparrow Flutter SDK enables you to collect feedback from your mobile app. Embed the Classic surveys in your Flutter application seamlessly with few lines of code.
MIT License
2 stars 4 forks source link

Compatibility issue with Flutter 3.7.x versions #3

Open darko-bacic opened 1 year ago

darko-bacic commented 1 year ago

Hi, I'm using the latest version of your SDK surveysparrow_flutter_sdk: ^1.1.2 but I'm getting the following error:

Could not build the precompiled application for the device.
Error (Xcode): ../../../.pub-cache/hosted/pub.dev/modal_bottom_sheet-2.1.2/lib/src/bottom_sheets/bar_bottom_sheet.dart:102:13: Error: 'ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart'.

This issue was know on Flutter repo and was closed.

The problem is that you are using country_code_picker: ^2.0.2 instead of country_code_picker: ^3.0.0, in their changelog you can see that they added support for Flutter 3.7.0 and the issue above is fixed.

So any developer that uses Flutter 3.7.0 and up (the current Flutter stable version at the time of writing is 3.7.10) will not be able to use your Flutter package.

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.10, on macOS 13.3 22E252 darwin-arm64, locale en-RS)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
hemanath-ss commented 1 year ago

@sachin-kumar56 , Can you check this?

sachin-kumar56 commented 1 year ago

@hemanath-ss There seems to be a few more dependency issue on Flutter 3.7.x checking on that