supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
656 stars 154 forks source link

Widget closes when signing in using Supabase #940

Closed Louis-Wave closed 2 weeks ago

Louis-Wave commented 2 weeks ago

Describe the bug A clear and concise description of what the bug is.

I'm working on a Flutter project. When I call the login dialog on my main page and sign in, context.pop(); Even if there is no code like , the dialog will be closed.

To Reproduce Steps to reproduce the behavior:

Enter email and password in each of the two textControllers and sign in using the following code.

Supabase.instance.client.auth.signInWithPassword(email: _model.textController1.text,password: _model.textController2.text);

Expected behavior A clear and concise description of what you expected to happen.

There should be no change on the screen.

Screenshots If applicable, add screenshots to help explain your problem.

Version (please complete the following information): On Linux/macOS Please run dart pub deps | grep -E "supabase|gotrue|postgrest|storage_client|realtime_client|functions_client" in your project directory and paste the output here.

On Windows Please run dart pub deps | findstr "supabase gotrue postgrest storage_client realtime_client functions_client" in your project directory and paste the output here.

supabase_flutter: ^2.5.2

Additional context Add any other context about the problem here.

dshukertjr commented 2 weeks ago

Hi there,

The supabase_flutter library does not interfere with your UI, and the cause of your dialog closing is in the code you wrote.