How to create an ad space within a list - flutter - 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.

Related

Randomly show custom Ad Screen from API - Flutter

I have a list of ads containing images, videos and details for each ad comes from an Api.
What is the best option to show a custom screen with random ad on a random time for ex: each 1-5 min will show a random ad.
I have tried workmanger but it doesn't seems like the best option.

How does app-ads.txt works with Android? And How can I remove Google Play Developer page?

I was testing app-ads.txt. So, I updated Developer page with logo icon and header image since the two images are required.
But once I updated, I can't remove the two images. When they don't exist, play store shows all the list of apps of my company. However, when they exists, it shows different UI and there were some voices that just showing list is better in my team. So, I need to remove the two images.. And How can I remove them or rollback it?
And also, the marketer says I need to set app-ads.txt in Google Play. The app doesn't have any ads in it but we make ad campaigns on Facebook. Does it need app-ads.txt to check something? I've read articles and documents about it but it all say it's for reseller or something. We don't have any Ads in the app though.

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!

adding advanced functionality to flutter App

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.

Show a page before user approves the application

I was wondering if it was possible to show the user a page of my application before they approved the app. Something like a splash screen that wouldn't need to use any of the user's data.
This is an example: https://apps.facebook.com/288033751224625/
Yes, it's totally up to you at what point you ask for permissions from the user. You are not limited to a single "splash" screen either. In theory you could have an entire app that never asked for any persmissions. In general, you should let users look around the app and only ask for permissions when you need specific data about them.