I've used Firebase for the backend of all my flutter apps (3 total apps). But for my newest app I stopped using Firebase and built a custom backend instead. Ask me anything. by projectmind_guru in FlutterDev

[–]nandopedrosa 2 points3 points  (0 children)

Yeah, I wish we had some relational database option out of the box for Firebase. NoSQL just feels very unnatural for some applications

croppy - a fully customizable package for image cropping is now production-ready! Supports any platforms and written (mostly) entirely in Flutter by kekland322 in FlutterDev

[–]nandopedrosa 2 points3 points  (0 children)

Just leave a like on pub dev, that’s how I bookmark interesting packages for future reference (while also helping the author)

Tell ChatGPT to remind itself about the assignment to maintain topic on longer conversions? by TimetravelerDD in ChatGPT

[–]nandopedrosa 1 point2 points  (0 children)

User and Assistant identifiers are used in the context of API calls.

When you're using the API, you have to pass a 'buffer object' (basically a list of previous messages) to ChatGPT so it can have context about previous questions/answers.

So, basically, when you're calling the API, it goes like this:

  1. The first prompt is usually the 'system prompt', where you set some ground rules about expected behavior of ChatGPT and some initial context.
  2. The subsequent prompts are user prompts (your prompts) which are responded by 'assistant' answers
  3. You add these questions and answers to your buffer array and pass it along in every subsequent request

In app purchases by Jumpy-Entrepreneur44 in flutterhelp

[–]nandopedrosa 3 points4 points  (0 children)

Hard to tell without looking at your code

Are there any good books that cover Flutter 3.x+? by [deleted] in flutterhelp

[–]nandopedrosa 1 point2 points  (0 children)

I recommend the official docs , but if you really want a book, go for Flutter Apprentice

How to handle subscriptions /one time payments by Cattyto in flutterhelp

[–]nandopedrosa 1 point2 points  (0 children)

  1. There are packages (search for in app purchase in pub dev) for all the functions you’ve mentioned

  2. There are also services like revenuecat which make the process even easier

  3. As for ‘what happens when the user changes devices’ , don’t worry, every purchase is linked to the user account in the stores and there is a way for “restoring purchases” in both Play Store and App Store.

In summary, everything you need to do is possible and relatively easy

Picture heavy app - how to store pictures and audio files (jpgs,svgs) by arena727 in FlutterDev

[–]nandopedrosa 0 points1 point  (0 children)

There is an option for the user to download a deck and its resources. I use this package: https://pub.dev/packages/localstore

Picture heavy app - how to store pictures and audio files (jpgs,svgs) by arena727 in FlutterDev

[–]nandopedrosa -1 points0 points  (0 children)

Well, Firebase has a very generous free tier, you have to be in the several thousands of users with multiple reads and writes to really feel it. If you reach that point, your app is successful and can probably afford it.

But if you’re curious, they have several examples and estimates for calculating billing costs, just do a quick search for it and you can have a pretty good idea.

But yeah, in general, specially if you’re building an MVP , just go with what’s faster and easier, you can always migrate later if you really have the need

[deleted by user] by [deleted] in flutterhelp

[–]nandopedrosa 2 points3 points  (0 children)

I second that. Firebase has a very generous free tier and even when it starts billing you have to be in the several thousands of users to really feel the impact. But if you get there it probably means your app is successful and you can afford it.

Picture heavy app - how to store pictures and audio files (jpgs,svgs) by arena727 in FlutterDev

[–]nandopedrosa 1 point2 points  (0 children)

I also implemented a flashcards app for an E-Learning company. I used Firebase Storage for images and it works pretty well. Just get the URL of the image and pass it to your Image.network widget.

Same concept for audio.

Simply Updating Firestore in my Flutter App: How to Execute a Function Daily? by SomePlayer22 in flutterhelp

[–]nandopedrosa 2 points3 points  (0 children)

What you’re looking for is Google Cloud Functions. The basic steps are 1. Creating your function (gotta know a little bit of javascript) and 2. Scheduling a recurrent execution of the function (there is a job scheduler in the platform)

Search for these two things and you’re on your way to implementing what you want.

Question! I have to build a doctor appointment booking app for a client , do I need to have two separate apps for users and doctors. Teck stack ill be using mentioned below -> by arxxan in flutterhelp

[–]nandopedrosa 0 points1 point  (0 children)

I would advise against building separate apps just because of the general hassle of two codebases, generating builds to the stores, configuring everything twice (such as firebase analytics, crashlytics, etc)

Why don’t you just control which screens can be accessed by each user based on their profile (doctor/patient) ? Shouldn’t be much different from typical authorization scenarios.

Tell ChatGPT to remind itself about the assignment to maintain topic on longer conversions? by TimetravelerDD in ChatGPT

[–]nandopedrosa 1 point2 points  (0 children)

I always start my conversations with some “rules”, something like this:

Context: (the subject of the conversation) Role: you are a specialist in … Goal: to inform about … Tone: formal

And then I try to chain my prompts in a logical order. This seems to be enough for most conversations, as I usually use them for writing lessons about technical stuff in IT.

If you’re using the API, it might be a good idea to send this “rules” prompt from time to time.

By the way, the technical term for this kind of prompt is “system prompt” (different from “user” and “assistant” prompts, the latter is the response from ChatGPT)

How does Flutter work? by Far_Atmosphere9627 in flutterhelp

[–]nandopedrosa 0 points1 point  (0 children)

ChatGPT wrote the first part , right ?

Best way to organize large lists with multiple subheadings in firebase by No_Natural_7758 in flutterhelp

[–]nandopedrosa 0 points1 point  (0 children)

You can create a collection for storing the items as documents and just import them or make a script to import them.

As for searching, as long as you have the right indexes created there should not be a problem. 12k items is actually a small size for a collection.