omdb_dart 0.0.2 copy "omdb_dart: ^0.0.2" to clipboard
omdb_dart: ^0.0.2 copied to clipboard

Dart client for the www.omdbapi.com API . it will return movie detials like year,IMDB Rating, actors,directors,poster and much more

example/main.dart

import 'package:omdb_dart/omdb_dart.dart';

void main() {
  getMovie();
} 

Future<void> getMovie() async {
  //create object of Omdb class and pass KEY and name of the movie
  //you can get your own API key from http://omdbapi.com/apikey.aspx
  Omdb client = new Omdb("KEY", "MOVIE");
  await client.getMovie(); // call getMovie to get the all data
  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} ");
}
6
likes
35
pub points
0%
popularity

Publisher

verified publishercodingboy.in

Dart client for the www.omdbapi.com API . it will return movie detials like year,IMDB Rating, actors,directors,poster and much more

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on omdb_dart