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

https://github.com/kauemurakami/mvvm_riverpod

Flutter app movies using Riverpod with MVVM
https://github.com/kauemurakami/mvvm_riverpod

flutter flutter-apps flutter-examples getit mvvm mvvm-architecture riverpod riverpod-state-management

Last synced: about 1 month ago
JSON representation

Flutter app movies using Riverpod with MVVM

Awesome Lists containing this project

README

          

# mvvm_riverpod

A example flutter app movies using [MVVM](https://learn.microsoft.com/pt-br/windows/uwp/data-binding/data-binding-and-mvvm) with [Riverpod](https://pub.dev/packages/riverpod) state management.

## Getting Started

`git clone git@github.com:kauemurakami/mvvm_riverpod.git`

**Create account** in [The movie db](https://www.themoviedb.org/).
After, click in your picture/initial letter name circle in top right, find `settings`, in `settings` find for `API` and you can see your API's `api key` and `token`.

#### Create file .env
In your project root folder, in the case is `mvvm_riverpod`, right click, select the option `create folder` named it with `assets`, inside `create file` with name `.env`. Now in your `pubspec.yaml` go at section `assets`.
```yaml
assets:
- assets/.env
```
```.env
MOVIES_API_KEY = "YOUR_API_KEY"
MOVIES_BEARERTOKEN = "YOUR_API_TOKEN"
```
Add `*.env` in your `gitignore`

#### Run project

`flutter packages get`

`flutter run`