Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automated Story Generator - A Flutter application that generates AI-powered children's stories with images.

Notifications You must be signed in to change notification settings

theprathamshinde/storyAI

Repository files navigation

📚 Story AI App

A Flutter application that generates AI-powered children's stories with images. This app uses Gemini's AI capabilities for story generation and Supabase for secure data storage.


✨ Features

  • 📖 Generate 10-page stories with AI-generated images
  • 🎨 Customize title, description, theme, and target age
  • 🏠 Beautiful home screen showing all created stories
  • 📄 Page-by-page story reading navigation
  • 🗑️ Delete stories you no longer need

⚙️ Prerequisites

  • 💻 Flutter SDK (latest stable version)
  • 🔑 Google Generative AI API key (Gemini)
  • 🗄️ Supabase account and project
  • 🧠 Basic knowledge of Flutter development

Setup Instructions

  1. Clone the repository:

git clone https://github.com/theprathamshinde/storyAI.git cd storyAI

  1. Copy the .env.template file to .env:

cp .env.template .env

  1. Edit the .env file and add your credentials:

SUPABASE_URL=https://your-project-id.supabase.co SUPABASE_ANON_KEY=your-supabase-anon-key GEMINI_API_KEY=your-gemini-api-key

  1. Set up Supabase:

    • Create a new Supabase project
    • Go to the SQL Editor
    • Copy and paste the contents of supabase_schema.sql
    • Run the SQL queries to create the necessary tables
  2. Install dependencies:

flutter pub get

  1. Run the app:

flutter run

Project Structure

  • lib/main.dart - Entry point for the application
  • lib/models/ - Data models
  • lib/cubits/ - State management using Cubit pattern
  • lib/repositories/ - Data sources and business logic
  • lib/screens/ - UI screens

Packages Used

  • flutter_bloc - For state management
  • supabase_flutter - For backend database
  • google_generative_ai - For AI story generation
  • equatable - For value equality
  • cached_network_image - For image caching
  • flutter_dotenv - For environment variables
  • uuid - For generating unique identifiers

About

Automated Story Generator - A Flutter application that generates AI-powered children's stories with images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published