film_gyaan 1.0.0 copy "film_gyaan: ^1.0.0" to clipboard
film_gyaan: ^1.0.0 copied to clipboard

outdated

An unofficial dart SDK which will connect to https://api.themoviedb.org/ and get the details.

example/main.dart

import 'package:film_gyaan/film_gyaan.dart';

/// An example on how to use the [FilmGyaan] package.
///
/// This is just an example to show how to use the package.
/// There are many methods provided by this package.
///
/// To know about the other apis if its not available
/// go to https://api.themoviedb.org/.
///
/// Raise an issue if anything is not working. Or need any more feature.
/// Any feedback is appreciated ☺️.
void main() async {
  var filmGyaan = FilmGyaan(
    credentials: Credentials(
      apiKey: '<API_KEY>',
    ),
  );

  /// Get popular movies, page 1
  var popularMovies = await filmGyaan.getPopularMovies();
  /// For page 2
  var data = await filmGyaan.getPopularMovies(page: 2);
  popularMovies.results.addAll(data.results);

  var movieId = popularMovies.results.first.id;

  /// Get movie details
  var movieDetails = await filmGyaan.getMovieDetails(movieId: movieId);
  print(movieDetails.title);
}
4
likes
0
pub points
0%
popularity

Publisher

unverified uploader

An unofficial dart SDK which will connect to https://api.themoviedb.org/ and get the details.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, http, logger, pedantic

More

Packages that depend on film_gyaan