dhruvanbhalara avatar

Flutter Config

Sets up Flutter app flavors the right way: one main.dart entry point, environment config via dart-define-from-file JSON files, and proper platform setup for iOS and Android. You get three flavors out of the box (dev, staging, prod) with separate Firebase projects, bundle IDs, and API endpoints. The approach is cleaner than the old multi-entry-point pattern and keeps secrets out of your JSON configs. If you're tired of hardcoded URLs or juggling environment variables across build scripts, this gives you a reproducible structure that works locally and in CI without the usual flavor setup headaches.

skills.sh installs
260
GitHub stars
30
last updated
Aug 21, 2026

Install

$ npx -y skills add dhruvanbhalara/skills --skill flutter-config --agent claude-code

Installs into .claude/skills of the current project.

Files

Flavor Architecture

  • Define three flavors: dev, staging, prod
  • Use a single main.dart entry point for all flavors
  • Pass flavor-specific configuration via --dart-define-from-file:
    flutter run --flavor dev --dart-define-from-file=config/dev.json
    flutter run --flavor staging --dart-define-from-file=config/staging.json
    flutter run --flavor prod --dart-define-from-file=config/prod.json
    
  • NEVER create separate main_dev.dart, main_staging.dart, main_prod.dart entry points

Config JSON Structure

Sponsors

Details

Repository
github.com/dhruvanbhalara/skills
Categories
Backend & APIs, DevOps & CI/CD, Mobile Development, Databases
First seen
Jun 3, 2026

More from dhruvanbhalara/skills

All 15
1davila7 avatarggetdavila7/claude-code-templatesCLI/Python toolkit for rapid bioinformatics queries. Preferred for quick BLAST searches. Access to 20+ databases: gene info (Ensembl/UniProt), AlphaFold, ARCHS4259skills.sh installs
2markpitt avatarmicrosoft-graphmarkpitt/claude-skillsOrchestration hub for Microsoft Graph API across Microsoft 365 services. Use for Graph API integrations, querying Microsoft 365 data, and building applications 259skills.sh installs
3mvanhorn avatarpp-ahrefsmvanhorn/printing-press-libraryPrinting Press CLI for Ahrefs. SEO and competitive intelligence API for backlinks, keywords, rank tracking, site audit, and SERP data.259skills.sh installs
4octagonai avatarsec-corp-governanceoctagonai/skillsReview corporate governance practices and board composition from SEC filings using Octagon MCP. Use when researching board structure, director qualifications, c259skills.sh installs
5dcjanus avatarticktick-clidcjanus/prompts使用 Python CLI 与 Dida365 Open API 交互以管理滴答清单任务/项目,适用于需要通过脚本或命令行调用滴答清单接口的场景(如项目/任务的查询、创建、更新、完成、删除)。258skills.sh installs
6existential-birds avatarzustand-stateexistential-birds/beagleZustand state management for React and vanilla JavaScript. Use when creating stores, using selectors, persisting state to localStorage, integrating devtools, or258skills.sh installs