Bhikkhu Subhuti
Bhikkhu Subhuti

Reputation: 542

How to do a Flutter Firebase app for both Mobile and Desktop at the same time

I see many samples and videos on how to do firebase for mobile and they call this "multiplatform". However, I don't see much on the desktop. There is one video on firebase flutter Windows by using a web and it seems to work. However, I do not see any tutorials for both mobile and desktop. Firebase would be a great example on syncing between desktop and mobile. We have such an app in development right now. Desktop development is new, but I'm surprised how little there is.

There is a library called firebase_dart, but the documentation seems weak.

Upvotes: 1

Views: 1017

Answers (1)

Bhikkhu Subhuti
Bhikkhu Subhuti

Reputation: 542

The package firedart with the video listed above works in both desktop (linux and android without much modification..
What needed to be modified?

  • I had difficulty with the button on the very top of the phone, so I added a sized box.
  • I had difficulty with debugPrint or print so I added a Text widget with the results (to string).

That also worked.
Although I would like to not use fluent_ui, it does work for both desktop and mobile. I'm not sure what to do with realtime db, but I think I can make the firedart work for user sync between mobile and desktop.

It would be better if I could get firebase_dart to work.

https://www.youtube.com/watch?v=Tw7L2NkhwPc

Upvotes: 2

Related Questions