Running firebase package AuthProvider get the below error
./../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.7.0/lib/src/auth_flow.dart:11:1: Error: 'AuthProvider' is imported from both 'package:firebase_auth_platform_interface/src/auth_provider.dart' and 'package:firebase_ui_auth/src/providers/auth_provider.dart'.
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.7.0/lib/src/screens/internal/provider_screen.dart:7:1: Error: 'AuthProvider' is imported from both 'package:firebase_auth_platform_interface/src/auth_provider.dart' and 'package:firebase_ui_auth/src/providers/auth_provider.dart'.
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.7.0/lib/firebase_ui_auth.dart:14:1: Error: 'AuthProvider' is imported from both 'package:firebase_auth_platform_interface/src/auth_provider.dart' and 'package:firebase_ui_auth/src/providers/auth_provider.dart'.
import 'src/providers/auth_provider.dart';
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.7.0/lib/src/navigation/authentication.dart:8:1: Error: 'AuthProvider' is imported from both 'package:firebase_auth_platform_interface/src/auth_provider.dart' and 'package:firebase_ui_auth/src/providers/auth_provider.dart'.
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
And the below error
I have the same problem I said in pubspec.yaml should explicitly 1.6.3 firebase_ui_auth: 1.6.3 not with ^ and than is coming the same print with ../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_ui_auth-1.6.3/lib/src/auth_flow.dart:11:1: Error: 'AuthProvider' is imported from both 'package:firebase_auth_platform_interface/src/auth_provider.dart' and 'package:firebase_ui_auth/src/providers/auth_provider.dart'.
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
Solution
Forcing firebase auth to use a specific version, which is firebase_auth: 4.12.0, solved my problem for now. It seems like the version 4.13.0 introduces a conflict with AuthProvider.
If you changing firebase_auth version did not work, then change the version of firebase_ui_auth, and this should be good. Remember, it’s a version conflict problem, changing to different version would work.