SnapSense is a powerful Flutter application that leverages the capabilities of Stability AI to generate high-quality images from text prompts. Designed with a clean and responsive user interface, it provides a seamless experience for users to turn their creative ideas into visual reality.
- Text-to-Image Generation: Instantly generate images by simply entering a descriptive text prompt.
- High-Quality Output: Utilizes Stability AI's
stable-image/generate/coreAPI for premium image quality. - Responsive Design: Optimized for a smooth experience across different devices.
- State Management: Built using the Bloc pattern for efficient and predictable state management.
- Modern UI: Clean and intuitive interface with immediate visual feedback.
- Framework: Flutter
- Language: Dart
- State Management: flutter_bloc
- Networking: Dio
- AI Service: Stability AI API
lib/ ├── model/ │ └── bloc/ # Bloc state-management logic (Events, States, Blocs) ├── view/ │ └── home_view.dart # Main UI for prompt input and image display ├── view-model/ │ ├── api_services.dart # Handles API calls to Stability AI │ └── api_links.dart # API configuration and endpoints ├── utils/ # Utility classes (Colors, Constants) └── main.dart # Application entry point
- Flutter SDK installed on your machine.
- An API Key from Stability AI.
-
Clone the repository:
git clone [https://github.com/HaiderAli228/SnapSense--AI-Image-generator.git](https://github.com/HaiderAli228/SnapSense--AI-Image-generator.git) cd snapsense -
Install dependencies:
flutter pub get
-
Configure API Key:
- Open
lib/view-model/api_links.dart. - Replace the placeholder with your actual Stability AI API key:
static const String apiKey = "YOUR_STABILITY_AI_API_KEY";
- Open
-
Run the app:
flutter run
Haider Ali Flutter Developer & Firease Developer
- 📧 Email: [email protected]
- 🌐 Portfolio: https://haiderali228.netlify.app/
Developed with ❤️ using Flutter.