adding advanced functionality to flutter App - flutter

I am currently developing a flutter app, which contain 3 tabs, 1 for dashboard, for displaying activity, for setings,and one for profile.
in activity section I am hitting the API and displaying its result in cards , example, once clicking activity button API returns a JSON of some 10 data, so there are 10 cards gets created inside activity tab, each card once clicke internally calls the another api and display the result which consist of some entries like 5 header fields and corresponding its entries.
till here I am not facing any issue.
what I am trying to do is in dashboard section I want to create a container which show the last 3 clicked cards in the activity tab.
i.e a user logged in and he clicked on the activity inside that he clicked on any of the cards present and viewed its contents, I want to display those cards in my container inside dashboard, so he can view the last accessed cards in the dashboard itself to have the quick access, otherwise he has to go to activity section all time and to search for those cards.
can u help me with the approach so how can I keep track of the cards he accessed, and how to show those inside the dashboard.

For this kind of functionality you will need one list of cards which is accessible from activity and dashboard tab,
Then if user clicks on any card you can add that card object to your local list of cards.
And show that list of cards in dashboard.
This approach will work on local store only,
And if user left app the list will be null.
If you have any other specific situation, please elaborate the question,
I may further help you in that case.

Related

how to save user edited information

I am new to coding and currently building a website.
I am struggling with a part of my project-----
The basic idea of the function is to...
user clicks the edit page button
the page enters edit mode and enables the user to add his own information in a separate side of page
the users presses save button and the information saves
the user can access the saved information when ever he/she wants to even after closing the tab.
the information should not be visible to other users and edited information for each should be different
there is no sign in/log in page hence there has to be a separate setting to save the information for the user
thanks,
Armaan
I have looked at other responses on overflow but am not able to find the right response as there are too many solutions
what you can do is when the user click save button after editing, you could save the contents of the page in useState or using redux. Then you can display is as you wish by retrieving data from the state/reducer

Fetching and Caching Users in IOS

I'm building an app that includes real-time group chat where each chat has a "details page" that includes information like group name, time, location (mapview) and a tableview that lists all the participants. The app works like Whatsapp where your "friends" come from your local contacts, so when you login for the first time, all your local friends are saved to Realm. What I'm having a hard time with is how to manage the details page where there is a mix of users stored in Realm and some that need to be fetched (Eg. if you're added to a group with some people you don't know). My current solution loads the Realm users first then loads the others when they are fetched, and this happens each time the view appears. It's very clunky and isn't a very user-friendly experience.
Looking at Whatsapp, when viewing the details page for a group I have not opened before, the page has a slight delay before opening and then displays all the users in unison. After the initial viewing of the details page, any subsequent viewing does not have any delay and all the users are displayed right away (local friends or otherwise).
I'm sure there is some sort of caching involved but I'm not sure what type and where to start. Any input would be great, thanks!

How to create an ad space within a list - flutter

I have this app which am about to create with flutter and i want to be able to sell ad space within it where users can place their ads and other people can view it when scrolling like facebook or instagram ads which randomly just shows.
So what i want to know is how to add an ad space within a list which is gotten from the database
Like from the image above i want the ad space to be place within a list of post (maybe ListView) and then still continue showing the post after inserting the ad space within it. Is there a way to do this in flutter.
NB: If you need more explanation or you still don't understand please tell me.
You probably want to fetch only 4-5 items from the DB, store them in a List and add to this list your ad, and you repeat this process every time the user has scroll at the end of the List.

Google Nest display issue when there are duplicate response

I created a google action using Google action SDK web hook. When there are same responses in a row, the first message moves all the way to the top of the window, higher than normal display window. In certain Nest version, it even holds up the conversation.

How to add app page to test app of instant game?

I want to add one app page to my test version of instant game, following this page Setting up your bot,
The page's category needs to be App Page
The page's name needs to contain the name of the app.
The page cannot be associated with another app.
You can create a page with these special conditions by going to the App Page section of the Instant Games product in your App dashboard. Before moving on to the next step, make sure that your App Page section looks like the step on the right:
After create one app page. I can find the app page section in the origin app dashboard, which under the Settings -> Advanced
However I failed to find the test app page section in app dashboard.
Is there any restrict of test version of instant game app? How can I add app page for test version of instant game?
You can create app page for the instant game from Settings > Advanced Or Instant Game > Details. Both are same things. Create New Page takes you to choose the page category. Get started with Business or Brand. Page Name is very important. The page's name needs to contain the name of the app.
Name your page name such that it exactly matches your app name.
From the image here for eg: Zangw's App
Next important (where you might have missed), Set the page category App Page.
Finally, reload the App dashboard and you will see the dropdown section like below: