https://github.com/viralvaghela/omdb_dart
Dart client for the www.omdbapi.com API . it will return movie detials like year,IMDB Rating, actors,directors,poster and much more
https://github.com/viralvaghela/omdb_dart
flutter flutter-apps flutter-movie-search flutter-packages package
Last synced: 6 months ago
JSON representation
Dart client for the www.omdbapi.com API . it will return movie detials like year,IMDB Rating, actors,directors,poster and much more
- Host: GitHub
- URL: https://github.com/viralvaghela/omdb_dart
- Owner: viralvaghela
- License: mit
- Created: 2020-07-29T18:38:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T18:53:47.000Z (about 5 years ago)
- Last Synced: 2025-02-18T11:15:33.137Z (8 months ago)
- Topics: flutter, flutter-apps, flutter-movie-search, flutter-packages, package
- Language: Dart
- Homepage: https://pub.dev/packages/omdb_dart
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# omdb_dart
Dart client for the www.omdbapi.com API . it will return movie detials like year,IMDB Rating, actors,directors,poster and much more
# Getting Started
To run or use this package you'll need to first get an API key from [http://omdbapi.com](http://www.omdbapi.com/apikey.aspx).# Now import it
```dart
import 'package:omdb_dart/omdb_dart.dart';
```# How to Use
Create a object of Omdb class and pass API KEY and movie name.
```dart
Omdb client = new Omdb("KEY", "MOVIE");
```Get details
```dart
print("Title : ${client.movie.title}"); // print Title of the movie
print("Released : ${client.movie.released}"); //print Released Date
print("Runtime : ${client.movie.runtime}"); //runtime
print("Poster URL : ${client.movie.poster}"); //URL of poster
print("Director :${client.movie.director} "); //Director
print("Writer :${client.movie.writer} ");
print("Actors :${client.movie.actors} ");
print("Plot :${client.movie.plot} ");
print("Language :${client.movie.language} ");
print("Country :${client.movie.country} ");
print("Awards :${client.movie.awards} ");
print("Meta Score :${client.movie.metascore} ");
print("IMDB Rating :${client.movie.imdbRating} ");
print("IMDB Votes :${client.movie.imdbVotes} ");
print("IMDB ID :${client.movie.imdbID} ");
print("Website :${client.movie.website} ");
print("Production :${client.movie.production} ");
print("Box Office :${client.movie.boxOffice} ");
```
Created By [Viral Vaghela](https://github.com/viralvaghela)