A Flutter application made for IMDb as proof of concept
-
First you need to install Flutter and Android Studio.
-
If you need, install Xcode too. Clone this repository
git clone https://github.com/erick-adl/The-Movie-Database-Flutter.git
-
Install VSCode
-
install Flutter plugin, then cmd + shift + p, type Pub: Get Packages.
-
cmd + shift + p, type Flutter: Run Flutter Doctor, this command will help you to check if your flutter application can run on both android and ios platform.
-
Navigate to lib/imdb_key.dart and change the apiKey "<IMDB_API_KEY>" to your own api key
-
Run this command inside imdb folder:
flutter packages pub run flutter_launcher_icons:main
This command will change the app icons on start, see flutter_launcher_icons
-
Now you can start the application, first navigate inside imdb/lib folder and open main.dart:
-
To run the application you can press F5 or open your terminal inside imdb/lib folder and type flutter run.
dependencies:
flutter:
sdk: flutter
mockito: ^4.1.1
Used to mock class to test
http: ^0.12.0
A composable, Future-based library for making HTTP requests. Used to create requests to imdb api
rxdart: ^0.20.0
RxDart is a reactive functional programming library for Google Dart, based on ReactiveX. Used to bloc implementation
bloc_pattern: ^1.3.0
Package that helps you implementing BloC Pattern by Dependency Injection in your project.
flutter_launcher_icons: ^0.7.4
A package which simplifies the task of updating your Flutter app's launcher icon.
cached_network_image: ^1.1.3
A flutter library to show images from the internet and keep them in the cache directory.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference. "# the-movie-database-flutter"