https://github.com/miguelhp373/flutter_consuming_api_rest
This is a Flutter application that consumes a REST API to display and update user details.
https://github.com/miguelhp373/flutter_consuming_api_rest
dotenv flutter https rest-api
Last synced: 6 months ago
JSON representation
This is a Flutter application that consumes a REST API to display and update user details.
- Host: GitHub
- URL: https://github.com/miguelhp373/flutter_consuming_api_rest
- Owner: miguelhp373
- License: mit
- Created: 2023-05-26T01:28:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-01T01:37:37.000Z (almost 3 years ago)
- Last Synced: 2025-03-05T02:19:09.088Z (about 1 year ago)
- Topics: dotenv, flutter, https, rest-api
- Language: Dart
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Consuming REST API
This is a Flutter application that consumes a REST API to display and update user details.
## Features
- Displays user details including name and image.
- Allows editing the user's name.
- Saves user changes to the REST API.
## Prerequisites
- Flutter SDK installed
- Device or emulator to run the application
## Installation
1. Clone this repository:
```
git clone https://github.com/miguelhp373/flutter_consuming_api_rest.git
```
2. Navigate to the project directory:
```
cd your-repository
```
3. Run the application:
```
flutter run
```
## API Configuration
The application consumes a REST API to fetch and update user details. Make sure to properly configure the API URL in the project's `.env` file.
## Used Libraries
- http: ^0.13.4: to perform HTTP requests to the REST API.
- flutter_dotenv: ^5.0.1: to load environment variables from the `.env` file.
## Contribution
Contributions are welcome! Feel free to open an issue or submit a pull request.
## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).