A beautiful Flutter wallpaper application that fetches images from the Pexels API.
-
Home Screen:
- Random images displayed in a circular pattern at the top right
- "AWO JAY" text centered on the screen
- Image slideshow with auto-play
- Three dots indicator showing current slide
-
Search Screen:
- Search box to find wallpapers from Pexels API
- Grid view of search results
-
Categories Screen:
- Predefined categories (Nature, Animals, Architecture, etc.)
- Beautiful category cards with preview images
Run the following command in the images_app directory:
flutter pub get- Go to https://www.pexels.com/api/
- Sign up for a free account
- Get your API key from the dashboard
Open lib/services/pexels_service.dart and replace YOUR_PEXELS_API_KEY with your actual API key:
static const String _apiKey = 'YOUR_PEXELS_API_KEY';flutter runlib/
├── main.dart # App entry point with navigation
├── models/
│ └── pexels_image.dart # Data models for Pexels API
├── services/
│ └── pexels_service.dart # API service for Pexels
├── providers/
│ └── pexels_provider.dart # Riverpod state management
└── screens/
├── home_screen.dart # Home page with slideshow
├── search_screen.dart # Search functionality
└── categories_screen.dart # Categories page
flutter_riverpod: State managementhttp: HTTP client for API callscached_network_image: Efficient image loading and cachingcarousel_slider: Image slideshow functionality
- The app uses Riverpod for state management
- Images are cached for better performance
- The slideshow auto-plays with 3-second intervals
- All images are fetched from the Pexels API