A high-performance Flutter application for generating stunning AI images using Cloudflare Workers AI.
- Exclusive Cloudflare Integration: Leveraging Workers AI models like
flux-1-schnell,stable-diffusion-xl, anddreamshaper-8-lcm. - Fast Generation: Optimized for low-latency image creation using the latest AI edge models.
- Dynamic Model Selection: Switch between different AI models directly from the UI.
- Interactive Gallery: View, share, and download your creations.
- Firebase Backend: Secure and scalable infrastructure for app management.
- Multi-language Support: Fully localized in English and Spanish.
- Diagnostic Logging: Built-in developer logs to troubleshoot API responses and network status in real-time.
- Frontend: Flutter (Material 3)
- AI Backend: Cloudflare Workers AI
- Backend Services: Firebase
- State Management:
ValueNotifier&setState(Optimized for performance)
- Flutter SDK (latest stable version)
- A Cloudflare Account with an API Token (with
Workers AI: Readpermission) - A Firebase Project
Create a .env file in the project root:
CLOUDFLARE_ACCOUNT_ID=your_account_id_here
CLOUDFLARE_API_TOKEN=your_api_token_here- Download your
google-services.json(Android) andGoogleService-Info.plist(iOS). - Place them in the respective platform directories (
android/appandios/Runner). - The project uses
firebase_options.dartgenerated via FlutterFire CLI.
flutter pub get
flutter runlib/
├── models/ # Data structures (AiImage, etc.)
├── pages/ # UI Screens (Home, Gallery, Generate, Settings)
├── services/ # Logic for Cloudflare AI and Firebase
├── utils/ # Constants, Themes, and Localizations
└── widgets/ # Reusable UI components
The app uses flutter_dotenv to protect sensitive keys. For production, ensure you obfuscate your keys or use a backend proxy to handle Cloudflare requests securely.
Distributed under the MIT License. See LICENSE for more information.
Created with ❤️ by Happy-devloper