This is a Flutter project that implements a master-detail pattern using the Marvel API. The app allows users to explore Marvel characters and view specific details about each one.
- Flutter: Cross-platform mobile application development framework.
- Provider: ^6.0.1 - For state management.
- Dio: ^5.0.0 - To make HTTP request library with more features.
- Crypto: ^3.0.1 - For cryptographic operations needed for authentication with the Marvel API.
- Flutter Dotenv: ^5.0.2 - To handle environment variables.
- Character List: Displays a list of Marvel characters using the API.
- Character Detail: Shows a detailed view with more information when a character is selected.
- Clone the repository:
git clone https://github.com/ManuGMoya/marvel_flutter.git
- Navigate to the project directory:
cd marvel_flutter
- Install dependencies:
flutter pub get
- Create a
.env
file in the root of the project with the following variables (you can get your keys from the Marvel Developer Portal):MARVEL_PUBLIC_KEY=your_public_key MARVEL_PRIVATE_KEY=your_private_key
After running the app, you will see a list of Marvel characters. You can scroll through the list to view more characters. Tapping on a character will take you to a detailed view where you can see more information about the character and the comics they appear in.
Run the application on an emulator or physical device:
flutter run
- lib/ Contains the application's source code.
- models/ Data models used in the application.
- providers/ Providers for state management.
- screens/ Application screens.
- services/ Services to interact with the Marvel API.
- widgets/ Reusable UI components.
- main.dart Entry point of the application.
Contributions are welcome. Please open an issue or submit a pull request for any improvements or corrections.
This project is licensed under the MIT License. See the LICENSE file for details.
- Marvel API: https://developer.marvel.com/
- Flutter: https://flutter.dev/
- GitHub Repository: https://github.com/ManuGMoya/marvel_flutter