flutter sdk is incompatible with flutterflow

I am trying to integrate FlutterFlow UI code into Flutter and I have copied the FlutterFlow UI code segment into Flutter (into main.dart). I followed the instructions for the integration.

I tried to issue the following command on Flutter terminal: flutter pub add flutterflow

The following message is displayed and I could not find a solution for the problem.

Note: collection is pinned to version 1.19.1 by flutter from the flutter SDK.

See sdk/docs/Flutter-Pinned-Packages.md at main · dart-lang/sdk · GitHub for details.

Because every version of flutter from sdk depends on collection 1.19.1 and every version of flutterflow depends on collection 1.15.0, flutter from

sdk is incompatible with flutterflow.

So, because flutter_application_a depends on both flutter from sdk and flutterflow any, version solving failed.

Failed to update packages.

I have tried to put a wider range on the Flutter collection (or use “any”), but that does not solve the problem.

never used flutterflow, but you might need an older flutter version

1 Like

Thanks for your suggestion. I think I could give that a try.

By the look of the message regarding the version mismatch problem, which version of flutter do you recommand for me to use that could match flutterflow? Thanks.

you should ask flutterflow what are they using, or try google