Flutter basic ai for basic social media app

How can we use artificial intelligence for a simple social media program in flutter? For example, how can I change the posts on the users ‘homepage according to the users’ request. It doesn’t need to be advanced.