The Movie Search App is a Flutter application that allows users to search for movies using the OMDb API. Users can enter a movie title in the search field, and the app will fetch and display relevant movie information, including the title, genre, IMDb rating, and poster.
- Search Functionality: Users can search for movies by entering a title in the search bar.
- Loading Indicator: The app shows a loading spinner while fetching data.
- Movie Cards: Displays movie details in a visually appealing card format.
- IMDb Ratings: Color-coded IMDb ratings based on the rating value.
- Flutter: A UI toolkit for building natively compiled applications for mobile from a single codebase.
- Provider: A state management library for Flutter applications.
- HTTP Package: Used for making HTTP requests to the OMDb API.
- OMDb API: A RESTful API for movie data.
This app uses the OMDb API for movie data, and an API key is required for access. To securely manage the API key, the app uses a .env
file for storing environment variables.
- Create a
.env
file in the root directory of the project. - Add your OMDb API key to the
.env
file in the following format:API_KEY=your_api_key_here