Back

[SOLVED] Account.dart

  • 0
  • Android
  • Flutter
  • Apple
  • Web
marco
13 May, 2023, 09:51

Hello, i build a little todo app with flutter and appwrite. So far it is working with chrome but not with macos and android. What is not working? The login process. Eveytime i press the login button, nothing is working. So i googled the problem yesterday. For android i added the activity com_linusu.flutter_web_auth in AndroidManifest in android/app/src/main. And i used the package name for the appwrite flutter app in appwrite. In Macos i added the appwrite dependency and created in the appwrite web gui the macos project with the buildidentifier from the general Tab in Xcode. Now i'm running out of gas. Do you know how i can help myself to get forward?

TL;DR
Summary: The user is seeking help with a problem in their Flutter app related to the login process. They have tried different solutions found on Stack Overflow, including adding an activity to the AndroidManifest and configuring Appwrite for macOS. They are looking for assistance in troubleshooting the issue. Solution: The user shares that they fixed the problem by adding `WidgetsFlutterBinding.ensureInitialized();` as the first command in the `main` function before running `runApp(MyTodos())`. They also mention the need for separate activities in the AndroidManifest.
D5
13 May, 2023, 10:02

Hello. Are you sure that the activity was in the correct place?

D5
13 May, 2023, 10:03

Inside the android manifest file, I mean

D5
13 May, 2023, 10:05

Also it should be a separate activity

D5
13 May, 2023, 10:06

Could you send here how your activity file looks like?

marco
13 May, 2023, 13:05

Hello, i could fix it with a hint from stackoverflow. I don't know if it is best practise. But WidgetsFlutterBinding.ensureInitialized(); as first command in the main before running runApp(MyTodos()). fixt it.

marco
13 May, 2023, 13:06

This is how my todo looks like. I feel ashamed about it, because most of them stuff i just tried to get something work, without understand fully what i am doing there. So i think the main reason for the problem is my lack in understanding the core concepts and relationships of flutter.

D5
13 May, 2023, 13:27

Oh, yes, I had too a problem and solved with that. That makes flutter wait for the elements, etc being fully loaded and rendered before executing anything else

D5
13 May, 2023, 16:15

[SOLVED] Account.dart

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more