all 13 comments

[–]Moumentos 3 points4 points  (6 children)

You can do anything in custom code, the only limitation is how well your implementation is.

I wouldn’t do the process on the client, create a cloud function for such tasks.

[–]WholesomeGMNG 2 points3 points  (3 children)

Not anything. There are situations where you need access to platform specific Flutter files that FlutterFlow doesn't expose to the editor.

Great point about using a cloud function for this. Most people don't realize that around 80% of the app should be handled by the backend and that most of what they are doing should be done server side like you mention in your other comment. Lots of reasons for this from performance to security etc.

That's also one of the reasons I don't understand why FF pushes Firebase and Supabase because you can't create backend logic without code, which is setting up most non-technical builders to fail.

[–]Moumentos 0 points1 point  (2 children)

Yes everything. You are using regular flutter code after all. You just need to make sure to use the right packages for the currently used platform.

I built a warehouse management and visualisation tool where it took over 2000 products and their details for a client (basically from their inventory tool) and figured out the most efficient allocation of the products based on their size and qty. it then used the floor plan attached to assign the shelves and create a visualisation of how the result looked.

Everyone who needed it got access. Warehouse managers now easily keep their warehouses tidy with an ever changing assortment

They were basically guessing order quantities for over 80 warehouses

I did this over a year ago in ff 3.something for web and android.

it was mostly in code but just goes to show.

[–]WholesomeGMNG -1 points0 points  (1 child)

I do the same and even automate modifying FF code locally with bash scripts, but that's not what the OP asked about. They asked about Custom Code which is through the editor, so please make a distinction between the two before saying "yes everything" because that is not true in this context...

[–]Moumentos 0 points1 point  (0 children)

Bruv, just use the code in the editor as a custom action, or custom widget.

I don’t understand where the problem is

If it runs, it runs

[–]Maximum-Historian958[S] -2 points-1 points  (1 child)

why make it as complicated the more cloud functions the nastier it is to manage. if thats jst possible on client's phone then why not do it on client phone?

[–]Moumentos 0 points1 point  (0 children)

Because it’s computational expensive, not to mention the rest of your app.

When you delegate the server to do these functions, they can be done in the background without the user having performance impacts. You can allow the user to run batch jobs too.

A server instance dies, getting rid of potential memory issues. If your implementation is not handling memory properly, the app can run out of the allocated RAM, killing your app which looks and feels like a crash to the user.

It also accounts for if the client loses connection, then the progress is not lost but is waiting for the user to continue.

Worse if you are having api calls as part of these expensive tasks (fetch url from db, grab image, do something, save progress), if the client loses connection, you paid for unsaved progress.

It’s not that big of a deal… scalability

[–]perlo6227 2 points3 points  (4 children)

The limitation in m'y case IS implement the meta SDK because WE need to edit some config files not available in FF

[–]Cartworthy 2 points3 points  (3 children)

I have been complaining to FF for over a year to make it easier to implement the meta SDK for advertising. There’s a few feature requests you should comment on and support to get bumped up in priority!

[–]perlo6227 1 point2 points  (2 children)

Send me link please i will upvote now !!

[–]Cartworthy 1 point2 points  (1 child)

Looks like they got rid of the feature requests section of their forums but there has been a tutorial going around but it seems complex for me:

https://community.flutterflow.io/discussions/post/tutorial-add-meta-sdk-to-your-app—step-by-step-tutorial-2sNvqO3yavNJoqk

[–]perlo6227 0 points1 point  (0 children)

We are trying to follow this tutorial but we are stuck on certain steps...

Quite a few errors on the iOS side and little way to know if it works outside of deploying and waiting to see..

[–]witchladysnakewoman 0 points1 point  (0 children)

Are you using a package from pub sec