top | item 29630065

(no title)

abelsm | 4 years ago

There are 3 ways you can use custom code for business logic:

- Custom Functions: https://www.youtube.com/watch?v=CbNtmue0ZZo

- Custom Widgets: https://community.flutterflow.io/c/whats-new-in-flutterflow/...

- Custom Actions: https://community.flutterflow.io/c/whats-new-in-flutterflow/...

The reason there are 3 different kinds of custom code is so that it can easily integrate with the visual builder ... for instance a "Custom Action" function will show up when you add an action on a Button Tap, or TextField submit. A "Custom Widget" can be dragged in and passed parameters, and a "Custom Function" can be used to set values. Would love any feedback

discuss

order

vanillax|4 years ago

I tried using the custom widget, they dont work. I kept getting errors using and there's no helpful tool tips or any messaging why it doesnt work. Providing boilder plate/sample custom widget code would be helpful.

abelsm|4 years ago

There were a lot of issues with custom widgets when we first launched the feature, we've deployed several fixes since then. But there's still more to do on our end to make it clear what errors you're getting. Thanks for the suggestion!

farmin|4 years ago

That's cool. Ill dig in bit further. Sorry I have not read the above links yet. But follwup question may be answered in them. I noticed a github connect feature. Is that for being able to pull the code into your own IDE and develop locally or does all code need to be added inside FlutterFlow?

abelsm|4 years ago

Yep, you can push the latest changes directly to Github. We always use a specific branch "flutterflow". Users can then merge in changes, as long as the changes on the main branch are not changing the layout visuals significantly, Git handles the merge nicely.

Ofc you can't import code into FF from your main branch, at least at the moment. But it's still been working well for our users