0

On using “...” error is shown that this requires the - -spread-collections experiment to be enabled. Try enabling this experiment by adding it to the command line when compiling and running. error shown edit: i upgraded with the latest version of flutter but this error is shown

Even I tried adding enable-experiment: -spread-collections in pubspec.yaml file but didn't work

1 Answers1

0

Set the environment in your pubspec.yaml with

environment:
  sdk: ">=2.6.0 <3.0.0"
Ajil O.
  • 6,562
  • 5
  • 40
  • 72
  • I did this but error is shown again that your app isn’t using Androidx – Dhanshree Pajankar May 19 '20 at 06:09
  • @DhanshreePajankar That's an altogether different error and should be a different question. Meanwhile have a look at this [this](https://medium.com/@carlosAmillan/fixing-androidx-error-in-flutter-f35e18d5925), [or this](https://stackoverflow.com/a/54857699/6891637) – Ajil O. May 19 '20 at 06:15
  • 1
    thanks it helped :) but now getting a different error – Dhanshree Pajankar May 19 '20 at 07:52