Prompting fundamentals
Write effective prompts to get better results when customizing templates or writing your own.
The Prompt Library gives you ready-to-use prompts for common tasks. Instead of writing complex integration prompts from scratch, pick a tested template and customize it.
Asks the AI to review the code produced by the last requested changes for quality, reusability, and efficiency.
Use this periodically — especially after large refactors or when you’ve added several features in a row.
Finds the single largest .dart file in your project and breaks it into well-organized smaller files.
Use this when a file has grown too large to navigate easily — typically after many features have been added to the same screen.
Provides a step-by-step prompt for integrating Firebase Analytics into your app.
google-services.json configuration templateYou’ll still need to create a Firebase project and download your own configuration file. See Firebase Setup for the full integration guide.
Adds a GDPR-compliant consent dialog for ad tracking. This is required before showing ads to users in the EU.
Implement this before adding any ad units. Without it, your app may violate EU privacy regulations.
Adds a banner ad to your app using Google AdMob.
Adds full-screen interstitial ads triggered at natural breakpoints in your app.
If you’re adding ads to your app, use the prompts in this order:
The consent flow must be in place before any ads load. Sending the ad prompts without the consent flow will still work technically, but your app won’t be compliant with EU regulations.
@file: reference to focus the AI. For example, after inserting the Banner Ad prompt, add: “Place the banner at the bottom of @file:lib/screens/home_screen.dart.”Prompting fundamentals
Write effective prompts to get better results when customizing templates or writing your own.
AdMob & Monetization
Full AdMob integration guide with detailed setup instructions beyond the prompt templates.