Got it đ You want a **ready-to-use PROMPT** that you can paste into a **web tool / AI / internal generator** to automatically create a **Flutter SaaS flavor setup**. Below is a **clean, professional, production-ready prompt** you can directly use on any AI tool or internal generator đ --- # â SaaS Flutter Flavor Generator â MASTER PROMPT ``` You are a Flutter multi-flavor automation expert. INPUT (ONLY): - App Name: <APP_NAME> - Vendor ID: <VENDOR_ID> RULES: 1. Generate a lowercase flavor key by: - Removing spaces - Converting to lowercase Example: "Platinum ChowSA" â platinumchowsa 2. Base project path: /Users/icoderz_242/Deonde/customer/ 3. Auto-create and configure EVERYTHING below using the generated flavor key. -------------------------------------------------- ANDROID -------------------------------------------------- Create folder: android/app/src/<flavor>/ âĸ Copy full structure from existing flavor: android/app/src/ariveh/ âĸ Set: applicationId = com.<flavor>.ordering âĸ Update strings.xml: app_name = <APP_NAME> -------------------------------------------------- ASSETS -------------------------------------------------- Create folders: assets/flavors/<flavor>/ -------------------------------------------------- CONFIG JSON -------------------------------------------------- Create file: assets/flavors/<flavor>/config.json Content: { "vendor_id": "<VENDOR_ID>", "name": "<APP_NAME>", "max_password_length": 6, "google_android_Key": "AUTO_COPY_FROM_EXISTING", "google_ios_Key": "AUTO_COPY_FROM_EXISTING", "language": "en", "base_url": "https://openapi.deonde.co/", "api_path": "v3/", "socket_base_url": "https://dashboard.deonde.co:8000/", "splash_icon": "<flavor>/icon_splash.png", "splash_logo_width": 0.5, "primary_color": "#FFBF41", "app_store_url": "itms-apps://itunes.apple.com/app/", "play_store_url": "https://play.google.com/store/apps/details?id=com.<flavor>.ordering", "facebook_campaign_id": "", "facebook_creative_id": "" } -------------------------------------------------- DART ENTRY FILE -------------------------------------------------- Create file: lib/core/main/vendors/main_<flavor>.dart Content: import '../main_common.dart'; import '../../config/config.dart'; void main() async { await Config.loadConfigs('<flavor>'); mainCommon(); } -------------------------------------------------- PUBSPEC.YAML -------------------------------------------------- Append automatically: flutter: assets: - assets/flavors/<flavor>/ - assets/images/<flavor>/ -------------------------------------------------- ANDROID FLAVOR -------------------------------------------------- Add inside productFlavors: <flavor> { dimension "default" applicationId "com.<flavor>.ordering" resValue "string", "app_name", "<APP_NAME>" } -------------------------------------------------- OUTPUT REQUIRED -------------------------------------------------- 1. All created folder paths 2. All generated file contents 3. Flavor key used 4. Ready-to-run command: flutter run --flavor <flavor> -t lib/core/main/vendors/main_<flavor>.dart ``` --- ## â Example Usage If input is: ``` App Name: Bzaar Namibia Vendor ID: 118 ``` Then flavor becomes: ``` bzaarnamibia ``` And command: ``` flutter run --flavor bzaarnamibia -t lib/core/main/vendors/main_bzaarnamibia.dart ``` --- If you want, I can also: â Convert this into a **Node.js CLI tool** â Convert into a **Python automation script** â Create a **Web UI (React / Next.js)** â Make it a **one-click flavor generator** Just tell me đ and to one file to uplod to and all data to ganret to this file
Sign in to leave a comment
Architecture diagrams will be automatically generated when the Project Manager creates tasks for your project.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No user flows yet.
The User Flow Agent will generate per-persona navigation diagrams after SRD updates.
No comments yet. Be the first!