flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.81k stars 3.21k forks source link

Update 'Add a user authentication flow to a Flutter app using FirebaseUI codelab' #9057

Closed cicw closed 11 months ago

cicw commented 1 year ago

Describe the problem

For the dependency: flutterfire_ui: ^0.4.3+20 Happens on auth_gate.dart on import 'package:flutterfire_ui/auth.dart';

The following error occurs:

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':sign_in_with_apple' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

Expected fix

No response

Additional context

No response

danagbemava-nc commented 1 year ago

Hi @cicw, is this related to a codelab, some tutorial on the website, or the package itself? If it is the latter, that package is deprecated and should not be used. See the readme for the package https://pub.dev/packages/flutterfire_ui If it is the former, can you link to the page/codelab in question?

BryantDragoon commented 1 year ago

Hi @cicw, is this related to a codelab, some tutorial on the website, or the package itself? If it is the latter, that package is deprecated and should not be used. See the readme for the package https://pub.dev/packages/flutterfire_ui If it is the former, can you link to the page/codelab in question?

Hi, its not my thread, but i fell in the same issue, so pretty sure he is talking about the same. Its a codelab, and since it fails it cannot be used anymore, the name is Add a user authentication flow to a Flutter app using FirebaseUI, the package is used in page 3, hope it can be update because it was interesting.

danagbemava-nc commented 1 year ago

Thanks for the link @BryantDragoon.

Triage note The codelab is using a deprecated package so the whole codelab will need to be updated.

thefirebanks commented 1 year ago

For anyone trying to update their code without the updated tutorial right now, I found these resources to be helpful in updating the code:

parlough commented 1 year ago

Thanks for sharing those resources @thefirebanks! :D

parlough commented 11 months ago

Thanks for opening an issue!

This was fixed by https://github.com/flutter/codelabs/commit/87e083c3675459f3e266f75aad6ce7089425ae40 and the codelab has been updated to cover package:firebase_ui_auth instead which doesn't have this issue :)