r/FlutterFlow • u/zoyanx • Oct 24 '24
Offering free flutterflow help
If it doesn't require me to actually get on the project and work or fix it then it's free. Just love problem solving and got some time to kill.
1
u/CheesecakeOk124 Oct 25 '24
I have a custom function which returns a List<DateTime>. In my UI I have a DropDown selector which selects one of the DateTime from the list. Now based on the selected dateTime, I need to render my UI based on that DateTime (a very simple and common usecase).
But the output of the DropDown is not coming as a DateTime, rather it is coming as a string. Furthermore I have to format the DateTime in the DropDown to show something like 2024, October. And the DropDown is returning the same as it's selected value. This has made it very hard to work with the UI as now I have to create another function just to parse the DateTime before passing it to the UI. And everytime I change the format of the DropDown, I have to modify my parsing function.
How to make the DropDown output the DateTime directly (instead of String) so I can use it in my UI page.
1
u/zoyanx Oct 25 '24
I understood the problem you are facing but can't really tell you the solution without actually looking at the function and widget setup itself
1
u/ucheuchechuchepremi Oct 25 '24
How to lazy load swipeable stackšš
1
u/zoyanx Oct 25 '24
What do you mean by lazy loading it
1
u/ucheuchechuchepremi Oct 25 '24
There are many documents i want to show in swipeablestack but if i have to load all of them it takes time to show up.
It would better if can load 25-30 first than when user swipe keep loading new documents in stack in rear.
1
u/zoyanx Oct 25 '24
Make two swipable stack one loads 20 cards in deck and on component load function call the db to get all the data in trailing action when the 20 card deck is finished on empty list widget show the fully loaded deck.
1
1
u/frinxo Oct 25 '24
Here's one I haven't been able to figure out. How can I start an action flow when a user swipes/moves a GoogleMaps widget? Even with the new FF5.0 action triggers, the GoogleMaps widget only supports On Marker Tap. I want to do something (check the new map center and load more Firestore docs if necessary) when the user moves the map.
1
u/zoyanx Oct 25 '24
You can't really do this without custom coding
1
u/frinxo Oct 26 '24
I've been testing making a custom map widget to handle it, thanks for confirming. I'm thinking of trying to copy the FF one (I downloaded a project with it added & working on copying that, it's based on the pub.dev google_maps_flutter package). If you have an approach that doesn't involve a custom widget (but other custom code) let me know. I'd rather not support a custom widget just to get the action triggers if there's a better way to handle this.
1
u/zoyanx Oct 26 '24
This is very tricky and even tricker to make it smooth. It will require custom widget and gesture detector.
1
u/frinxo Oct 26 '24
I was trying to use the new action triggers (On Horizontal/Vertical Drag End). I tested on a Stack with the Map widget in it, and it kind of worked. In Test mode, the actions on the Stack triggered the action flow and also moved the map. But on a real device once I added the actions to the Stack, it triggered the actions fine but it blocked the swipes from moving the map, so it won't work unless I can find a way around that.
1
1
u/YohannanKPhilip Oct 25 '24
I am having issues with realtime supabase
I'm building a chat app
but sometimes in chat room
chat doesn't work in realtime
happens sometimes, we need to go back then come again to the chat room
I check the logs to see I get 503, 400 errors sometimes
What's the issue?
It's buggy like in some cases
1
u/zoyanx Oct 25 '24
For last couple of days I have noticed realtime service by supabase not working properly multiple times a day. For a chat room I would employ something else probably xano.
1
u/YohannanKPhilip Nov 16 '24
Oh, Thanks for the message & Sorry for the late reply I have never tried xano, Can I ask the difference & where it gets better than supabase?
1
u/zoyanx Nov 17 '24
Xano is like flutterflow for databases but I think new streaming changes with supabase will be enough for the chat app
1
u/azzar94611 Oct 25 '24
Thanks, this is just so kind and helpful.
Whatād be the easiest way to have an avatar (circle) picture that shows the userās initials when the user hasnāt uploaded a picture ?
3
u/zoyanx Oct 25 '24
Create a custom function supply it first name and last name as string capture fn 0 and ln 0 (0 being the first character) then initial = fn0 + ln0 set output as string and set the picture container text as initial output and conditions show if pic not present
1
u/NeitherBox6915 Oct 25 '24 edited Oct 25 '24
I've had a tough time getting a listview together that gets values at just the third depth of nesting level from an app state. Even though the data types are structured to include each other. Is there a chance you can make an example or share the right order to put one of those together? I am not sure if I get the relationship between filter and map or how to do it via the selections. I'm going to try using a custom component instead of one today, but I have been at this for so long with so little luck. I don't care about what fields are used, I just want to understand the concept of deep nested data in flutterflow in general.
2
u/zoyanx Oct 25 '24
I have done something similar for supabase rows but not from app state. If I am getting it correctly you are filtering data then mapping the filtered with another table to get an unique list of output right? Images would have helped alot to understand the issue.
1
u/NeitherBox6915 Oct 25 '24
Basically for a word picture, library.section[1].category[3].addAll tolist. So like you could have a field book, and author or whatnot. This isn't what I'm making, but I am not even really trying to make the one I need because I can't tell what to do in general. I can't seem to get the listview builder to tell I don't want to list section and category, I just want to filter down to a particular category at index, so to speak.
1
u/zoyanx Oct 25 '24
I really want to help you mate but it seems that will require inspecting the actual widget
1
u/NeitherBox6915 Oct 25 '24
Oh I was just wanting to figure out if its possible or not in general for any child of a child to a list when just using the generate dynamic children panel's "set variable" panel.
Any self-nesting node variable would work to test that, the problem is I just don't know json well enough to understand how to rebuild one properly so I can't tell if I am not making the right selections, or if there is a legitimate obstacle to try to steer around somehow.
Even a sample json path to put in at the first part. Like for instance, could I try using the third depth level node's data type with a json path to explain to it what to do?
2
u/zoyanx Oct 25 '24
I am sorry. I am trying hard to figure out what's the issue you are facing, from what I could understand now that you are getting a response where the data is $.parent.child.child(list) and you are trying to generate childrens from it right? using set variable where you can define what data to use?
1
u/NeitherBox6915 Oct 25 '24
Oh, I am pretty sure the issue is I don't know what I'm doing well enough lol.
But yeah, but also so I can collect specific to particular branches of a data tree, so like child[whichChild].child[whichChildrenOfChild] to list. That way the indices can be passed in so that data down one of a few subbranchs of a branch is listable with the itemBuilder.
But I think I might be able to figure out something today to make it work. If I can't figure out how to do it via jsonPath I'm going to try to just imitate the listview builder with a custom component combination.
1
u/Cartworthy Oct 25 '24
Can you help with a slow-scrolling web app that has to query a lot of data? The listview infinite scrolling feature is super glitchy for me.
2
u/zoyanx Oct 25 '24
If the glitch being scroll skipping one of the reason that is happening is because of the images getting cropped in by container so when they load in the skip a couple pixels there's an issue open for it in the GitHub.
You are using firebase or supabase? Checked the performance recommendation on top right?
1
u/Cartworthy Oct 25 '24
Iām using firebase. Iām not using GitHub though.
There are images inside of a container but not sure what you mean by getting cropped? Why would that cause an issue and how do you fix it?
2
u/zoyanx Oct 25 '24
Are you caching the firebase data you are fetching?
What I meant to say was container hiding the overflow of the image but the overflowing part does get rendered and glitches. Cropped wasn't the correct word. My bad.
1
u/Cartworthy Oct 25 '24
Yes, the ācache imageā switch is on.
The image is set to ācoverā with height and width at 100% inside of a container that has height and wide of āinfā inside of a stack with a fixed height.
I kind of need it to display like this though so Iām not sure how to fix without sacrificing the design?
2
u/zoyanx Oct 25 '24
Just the image? not the entire call which means if some data is called already and there's nothing new it all get fetched again increasing the server cost and the app appears slow to user.
We are on the same boat. I hope they fix it soon or provide us with an alternative.
1
u/Cartworthy Oct 25 '24
I removed all images and the glitch still occurs.
Itās only when scrolling UP though. It skips and jumps.
2
u/zoyanx Oct 25 '24
Interesting there's another thread on this bug I read where it was said that listview when you scroll down it destroys everything above the view that is rendered probably to save memory and when you scroll up it renders it again leading to that glitch.
Which means column doesn't do that and as a result columns are not performant therefore not recommended for dynamically generated children.
1
u/Cartworthy Oct 25 '24
I just did another test deleting EVERYTHING inside the list view and just added a 500px tall container so I could see the scrolling.
That fixed it.
Iām think my issue is that I have two queries reading document references inside the list view. I really need that information though so Iām not sure how to get around that?
2
u/zoyanx Oct 25 '24
While you are at it can you add stuff one by one and check just when the scroll skip issue occurs?
I myself have two components and I am passing parameteres and they do their own thing wait I might have just realized the issue. Let me confirm and get back to you.
1
u/GolfCourseConcierge Oct 26 '24
If you're still looking for a solution on this, consider cloud loading your data and simply returning the results combined. I do this in some complex listviews so there is no loading at all. It builds the list on the server and just gives me back what I need, I display it in a list view.
It goes from this slow load as you go feed to boom, it's there all at once. Scroll up down whatever and it's smooth as silk. Plus I can be more specific in my filtering logic.
1
u/Cartworthy Oct 25 '24
Update: I just did a test removing ALL images from my feed and the glitch still occurs when scrolling up only.
2
u/zoyanx Oct 25 '24
Update: I fixed the issue from the same thread they were reporting the error it's more of a work around though wrap the components in a container and give it a fix height. Make list view shrinkwrap and turn off primary.
I am thinking what's happening is that since we haven't given our component fix height the view controller updates the component just as it enters the view causing the glitch giving it a fixed height ensures the view controller loads the post above before it hits the view.
1
u/Cartworthy Oct 25 '24
That worked!!! WOW I am so impressed haha Iāve been struggling with this forever. Youāre a genius. Thank you š
Are you freelancing? I have some other issues I need help with.
2
1
u/One_mega_problem Oct 25 '24
Hey nice gesture. FF God bless you.
Here is an interesting problem, I am not able to get my head around. I have implemented a social media like page with a post and there are people who can comment on it. Could not attach the
All the comments are stored in a supabase table and shown as a list view. Now, I Would like to capture people who respond to specific comment and Also display the same right below that comment. Capturing is easy may be by just identifying the parent comment.
I wonder if there is a way to showcase child comments right below the respective comment and Also how to show user popups when someone tried to tag another with @ like in Facebook or other social media?
Any thoughts?
2
u/zoyanx Oct 25 '24
I made a reply table with one column name replied_on which carries the comment Id and added a column (not recommended but works) inside and under comment widget which calls the reply table looking for the comment Id passed from parent if yes then the reply shows if no then nothing renders. Works like charm.
You can't do that in the standard input widget. If I wanted to do that I would do it in bottom sheet through tag a friend icon before input and pass the result to the comment or reply input. Making the username text clickable and navigate to user profile will be quite tricky I believe. Could be doable if combine text allows separate actions on two different strings getting combined, I am not sure if it does.
1
u/Icy-Lychee7882 Oct 25 '24
I'm building a web app in FlutterFlow, which supports Gemini. The app uses an API call to a GPT I've created there, but, I thought I'd explore how to do this with Gemini. I built what I consider an equal to a GPT, they call building these things Prompts (I don't know why). Gemini also asks me to run code in FlutterFlow to install a package that helps structure the returned json package. What I'm learning is the Gemini uses current data while OpenAI has a date cap of several months. This seems appealing to me, but, it seems there's some extra steps to implement the call. The Gemini API is very simple though. I'm just throwing this out to see if anyone can give me any informed feedback as to which way I should go. I've already done a proof of concept in Bubble using my OpenAI GPT, but, if Gemini is already somewhat integrated into FlutterFlow, this seems like it should be a no-brainer.
Thoughts?
2
u/zoyanx Oct 25 '24
Personally I don't find Gemini response as good as chatgpt response but if it serves your purpose then it's a no brainer. Flutter and Gemini both are Google supported so they have first class integration.
1
u/Icy-Lychee7882 Oct 26 '24
Thanks. I'm extremely familiar with OpenAI and developing GPTs that I can fine-tune. I'm now learning about Gemini, and I agree that Gemini responses can get wild. Yesterday, as I was creating the "prompt," it changed the prompt when it passed new information in the test, totally ignoring the prompt I wrote. My requirements are intended to be very strict on what it's supposed to pass. With help from Gemini itself, I think I was able to restrict its response to the criteria that I'm specifyingānot sure if this will be adhered to, though. What attracted me to Gemini, which I've never used before was exactly what you described; they're both Google products, and Gemini uses current, up-to-date data and OpenAI does not. I'd love to feed up-to-date data to my clients, but if it drifts back to OpenAI. Thanks for the feedback
1
u/eddiejoymedia Oct 26 '24
The APK size of my app suddenly increase a lot recently. I`ve already tried some help at offical foruns, but no one could really help realise what has happened. The was no increase on media assets or something like that.
The best clue is related to the recent Flutterflow update, but I`m not totally sure about.
Any clues?
1
u/zoyanx Oct 26 '24
Most of the time the culprits in these kind of issues are dependencies. Check if one of your dependencies recently updated to a new version and led to size increase.
1
u/eddiejoymedia Oct 26 '24
But my APK came from 30MB to 85MB. A simple dependency update could be causing such difference?
1
u/zoyanx Oct 26 '24
Could be you need to check your assset and then your dependency lastly if you still can't find the issue then export code and build it with size-analyze that will give you the exact breakdown
1
u/Far_Distance_337 Oct 26 '24
I have a widget (with some textfields) in a column. I want the widgets to appear more when user click on "Add More". And I want to retrieve the value associated with it, but they can also delete the widget if they click trash icon, and if they choose to Add More again they can. Basically I want to retrieve or delete values attached to the specific widget the user fills/delete
1
u/zoyanx Oct 26 '24
I don't see how this is a problem you create an action that adds to the table in the database and call the database on the column obviously to show the value you added and the when you click on delete icon the action deletes the row using doucment reference or specific row depending on the database you are using
1
u/Far_Distance_337 Oct 26 '24
Forgot to mention no backend/firebase here as the user hasn't submit the form it's all client side
1
u/zoyanx Oct 26 '24
then you create a list on app state for it. update the app state with actions on add and update it again on delete.
1
u/Far_Distance_337 Oct 26 '24
You're not getting what I'm asking for
1
u/zoyanx Oct 26 '24
Too bad. Try drawing on excali draw or even better make a video explaining what you need so I can help.
1
u/azzar94611 Nov 01 '24
Hi Zoyanx, I have a small on that I havenāt been able to figure out from docs and forum:
Some of the containers in my app trigger an action on tap.
I would like them to display a different color or an animation when they are pressed. In a similar way than what buttons do.
Is there a way to do that ?
Thanks you so much for the help!
1
u/zoyanx Nov 01 '24
Set the container color to a variable in component state. Set default to white and on tap set the state to grey wait 100ms and then set the state to white. You have successfully replicated the visual response.
1
u/azzar94611 Nov 01 '24
Thanks! It worked like a charm :D
I changed the variable « on tap down / on tap up » to convey the press action
1
u/FunctionActive5792 Nov 03 '24
Hola buena tarde, estoy creando una app de pedidos para restaurante, y me he encontrado con un problemas cuando quiero aƱadir dos o mas adiciones o modificadores hacia otra pagina. Las adiciones las tengo en un checkboxtile dentro de una list view con su nombre y precio. Esta informacion de las que son seleccionadas la quiero usar en la pagina de carrito pero no he encontrado la forma de pasarlas. En el siguiente video lo muestro un poco mejor, de antemano muchas gracias. https://komododecks.com/recordings/L75zEeSUSTb6UtQPNKO3
1
u/zoyanx Nov 03 '24
Estoy usando un traductor, asĆ que disculpa si hay errores. En cuanto al problema, no puedo darte la solución exacta sin revisar, pero deberĆas usar el estado de la aplicación para actualizar el carrito al usar el checkbox, si no logras pasar los parĆ”metros al carrito a travĆ©s de los componentes.
1
u/FunctionActive5792 Nov 03 '24
Como puedo hacer para que lo revises con mas profundidad?
1
u/zoyanx Nov 03 '24
Freelanceo; puedes enviarme un mensaje directo si estƔs dispuesto a pagarme para solucionarlo.
1
1
1
u/Both-Bad-9141 Dec 12 '24
I want to make my user able to shareĀ toĀ my app. For example if he sees un link he likes on chrome, he can share it to my app. The same way you can share stuff on whatsapp. It seems the only solution is to export the code on visual studio and to edit the manifest there, but I have no development skill so I'm looking for a way to do it into flutterflow :/
1
u/SignificantFloor1636 Feb 18 '25
Estou precisando sincronizar uma base de dados no supabase com o sqlite, sem utilizar powersync e companhia...
0
u/visual_impact Oct 25 '24
I just posted a question that's been doing my head in. Please have a look at my latest submission cause I could really use the help haha
0
Oct 28 '24
[deleted]
1
u/zoyanx Oct 28 '24
Anything api based is doable in flutterflow. It seems like you don't know where and how to get started. You should watch flutterflow's playlist on building an app. If you are stuck anywhere and rather outsource the problem you can dm me.
0
1
u/Few_Stage_3636 Oct 25 '24
I have a problem, but it's not something easy to solve just by explaining, after I switched to the supabase api call with infinite scroll in listview, I'm not able to find a way to hide the like button when a user has already liked it, in the same way When showing the number of likes in the listview with infinite scroll, it keeps pulling the data every time I navigate up or down the listview, even if I have already pulled the items before. Same thing for the comment response counter, there is also this problem, and the responses within the comments, I don't know how to do it to only load the comments and responses when clicking on the button, unfortunately I will end up giving up on the system of likes and responses to comments, worse than There is no video teaching how to do this with Supabase and infinite scroll.