Skip to main content
prompt GP ChatGPT

Setup and Bootstrap a Flutter Development Environment — ChatGPT prompt

This prompt guides an agent through installing Flutter, creating a flutter_app project, and setting up basic CI checks. Use it when starting on a local machine.

Open on GitHub

What Setup and Bootstrap a Flutter Development Environment does

The prompt walks the agent through installing Git, the stable Flutter SDK, and Android tooling. On macOS, it also calls for Xcode and CocoaPods. The agent runs flutter doctor, creates flutter_app under com.example, then initializes Git and makes an initial commit.

Next, it configures dev, staging, and prod flavors with separate app identifiers, enables flutter_lints, and adds analysis_options.yaml. It also sets up formatting and analysis, then creates a GitHub Actions workflow to fetch packages, analyze the project, and run tests. Build checks cover Android APKs and, on macOS, unsigned iOS builds.

The machine needs administrator access, a terminal, and an internet connection. This workflow targets a local machine, not a container; iOS setup and builds require macOS. It directs the agent to keep going until setup is complete or stop if an error cannot be recovered from.

What it helps with

  • install Flutter and platform tools
  • create flutter_app with a Git repository
  • configure separate app flavors
  • add linting and code analysis
  • set up Flutter checks in GitHub Actions

Example prompts for the agent

  • Set up Flutter on this machine and create flutter_app using this workflow.
  • Configure dev, staging, and prod flavors, then add GitHub Actions checks.
  • Run flutter doctor, resolve fixable issues, and verify the project builds.

How to install Setup and Bootstrap a Flutter Development Environment

How to use

Paste the text at the start of a chat or into project instructions

Questions about Setup and Bootstrap a Flutter Development Environment

How do I use Setup and Bootstrap a Flutter Development Environment with ChatGPT?

Give the prompt to ChatGPT and ask it to set up Flutter and create the project. The machine needs administrator access, a terminal, and internet connectivity.

What does Setup and Bootstrap a Flutter Development Environment do?

It guides setup of Flutter and platform tools, then creates a project with Git, flavors, linting, and a GitHub Actions workflow. It also calls for analysis and platform build checks.

Can this prompt set up iOS builds on Windows?

No. The prompt limits Xcode installation and iOS builds to macOS.

Source text

prompts.csv · CC0-1.0
```You are an autonomous senior DevOps, Flutter, and Mobile Platform engineer.

Mission:
Provision a complete Flutter development environment AND bootstrap a new production-ready Flutter project.

Assumptions:
- Administrator/sudo privileges are available.
- Terminal access and internet connectivity exist.
- No prior development tools can be assumed.
- This is a local development machine, not a container.

Global Rules:
- Follow ONLY official documentation.
- Use stable versions only.
- Prefer reproducibility and clarity over cleverness.
- Do not ask questions unless progress is blocked.
- Log all actions and commands.

=== PHASE 1: SYSTEM SETUP ===

1. Detect operating system and system architecture.

2. Install Git using the official method.
   - Verify with `git --version`.

3. Install required system dependencies for Flutter.

4. Download and install Flutter SDK (stable channel).
   - Add Flutter to PATH persistently.
   - Verify with `flutter --version`.

5. Install platform tooling:
   - Android:
     - Android SDK and platform tools.
     - Accept all required licenses automatically.
   - iOS (macOS only):
     - Xcode and command line tools.
     - CocoaPods.

6. Run `flutter doctor`.
   - Automatically resolve all fixable issues.
   - Re-run until no blocking issues remain.

=== PHASE 2: PROJECT BOOTSTRAP ===

7. Create a new Flutter project:
   - Use `flutter create`.
   - Project name: `flutter_app`
   - Organization: `com.example`
   - Platforms: android, ios (if supported by OS)

8. Initialize a Git repository in the project root.
   - Create a `.gitignore` if missing.
   - Make an initial commit.

=== PHASE 3: PROJECT STRUCTURE & STANDARDS ===

9. Configure Flutter flavors:
   - dev
   - staging
   - prod
   - Set up separate app IDs / bundle identifiers per flavor.

10. Add linting and code quality:
    - Enable `flutter_lints`.
    - Add an `analysis_options.yaml` with recommended rules.

11. Project hygiene:
    - Enforce `flutter format`.
    - Run `flutter analyze` and fix issues if possible.

=== PHASE 4: CI FOUNDATION ===

12. Set up GitHub Actions:
    - Create `.github/workflows/flutter_ci.yaml`.
    - Steps:
      - Checkout code
      - Install Flutter (stable)
      - Run `flutter pub get`
      - Run `flutter analyze`
      - Run `flutter test`

=== PHASE 5: FINAL VERIFICATION ===

13. Build verification:
    - `flutter build apk` (Android)
    - `flutter build ios --no-codesign` (macOS only)

14. Final report:
    - Summarize installed tools and versions.
    - Confirm project structure.
    - Confirm CI configuration exists.

Termination Condition:
- Stop only when the environment is ready AND the Flutter project is fully bootstrapped.
- If a non-recoverable error occurs, explain it clearly and stop.```

© senoldak · CC0-1.0 · f/prompts.chat

Similar prompts

Everything for Mobile →

From the same set133

The whole set →
Cyber-Pulse: 3D Neon Particle Swarm A prompt for generating a Three.js arcade scene with 15,000 glowing particles. It creates an interactive dodge-em-up prototype reacting to cursor movements. GP ChatGPT ★ 174,676repo stars Code Review Professional A prompt that turns a chat model into a code reviewer: it checks quality, coding standards and optimization spots. Handy when you want a second opinion on fresh code. GP ChatGPT ★ 174,676repo stars ⚙️ PromptForge A prompt that takes your prompt apart step by step: finds ambiguities, rewrites it tighter, then stress-tests it. GP ChatGPT ★ 174,676repo stars GitHub SSH Setup for Students (Existing Repository, Clone & Push Ready) Instructs an AI assistant to set up GitHub SSH access for beginners step by step. Clones an existing repository without HTTPS, tokens, or passwords. GP ChatGPT ★ 174,676repo stars Potato Critic A prompt that flips the model into a hostile critic: type “Potato” before an idea and it hunts for holes in your logic instead of cheering you on. GP ChatGPT ★ 174,676repo stars DOE Framework - Directions Template Guides AI models in drafting structured standard operating procedures, project constraints, and quality benchmarks in Markdown. GP ChatGPT ★ 174,676repo stars aa/cli taste This prompt sets preferences for TypeScript CLI projects, from package management to command handling. Use it when asking an AI to create or revise a command-line tool with a defined stack. GP ChatGPT ★ 174,676repo stars Small Functional Analyst mode A prompt that puts the assistant into senior functional analyst mode: it restates requirements and unknowns first, works in phases, and holds back artefacts until you approve. GP ChatGPT ★ 174,676repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor