I got the following error on my app
Because segment_analytics 1.1.2 depends on web >=0.3.0 <=1.0.0 and no versions of segment_analytics match >1.1.2 <2.0.0, segment_analytics ^1.1.2 requires web >=0.3.0 <=1.0.0.
So, because ment depends on both web ^1.1.0 and segment_analytics ^1.1.2, version solving failed.
the solution is very simple
make web package support > 1.0.0 and < 2.0.0
I solved it in my project by
dependency_overrides:
web: ^1.1.0