An open API service indexing awesome lists of open source software.

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.

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).