jikan_dart 0.9.0
Jikan bindings for jikan api is returns built_value structures so you need to have it in your dependencies
Build status:
Available API methods:
Future<BuiltList<Top>> getTop(TopType type, {int page, TopSubtype subtype});
Future<String> getAnime(int animeId, AnimeRequestType type);
Future<MoreInfo> getAnimeMoreInfo(int animeId);
Future<AnimeEpisodes> getAnimeEpisodes(int animeId, {int episodes = 1});
Future<BuiltList<Article>> getAnimeNews(int animeId);
Future<BuiltList<Picture>> getAnimePictures(int animeId);
Future<BuiltList<Promo>> getAnimeVideos(int animeId);
Future<Stats> getAnimeStats(int animeId);
Future<Forum> getAnimeForum(int animeId);
Future<BuiltList<Recommendation>> getAnimeRecommendations(int animeId);
Future<BuiltList<MangaCharacter>> getMangaCharacters(int mangaId);
Future<BuiltList<Article>> getMangaNews(int mangaId);
Future<BuiltList<Picture>> getMangaPictures(int mangaId);
Future<Stats> getMangaStats(int mangaId);
Future<Forum> getMangaForum(int mangaId);
Future<MoreInfo> getMangaMoreInfo(int mangaId);
Future<BuiltList<Recommendation>> getMangaRecommendations(int mangaId);
Future<BuiltList<Picture>> getPersonPictures(int mangaId);
Future<BuiltList<Picture>> getCharactersPictures(int mangaId);
Future<Season> getSeason(int year, SeasonType season);
Future<Schedule> getSchedule({WeekDay weekday});
Future<GenreList> getGenre(GenreType type, Genre genre, {int page = 1});
Future<Producers> getProducers(int producerId, {int page = 1});
Future<Producers> getMagazines(int magazineId, {int page = 1});
Future<String> getUser(String username, {UserRequestType request});
Future<ProfileResult> getUserProfile(String username);
Future<HistoryResult> getUserHistory(String username, HistoryType historyType);
Work in progress
Api bindings:
-
[x] Top
- [x] Anime
- [x] airing
- [x] upcoming
- [x] tv
- [x] movie
- [x] ova
- [x] special
- [x] bypopularity,
- [x] favorite
- [x] Manga
- [x] manga
- [x] novels
- [x] oneshots
- [x] doujin
- [x] manhwa
- [x] manhua
- [x] bypopularity,
- [x] favorite
- [x] People
- [x] Characters
- [x] Anime
-
[ ] Anime
- [ ] Character staff
- [x] Episodes
- [x] News
- [x] Pictures
- [x] Videos
- [x] Stats
- [x] Forum
- [x] More info
- [x] Recommendations
- [ ] User updates
-
[ ] Manga
- [x] Characters
- [x] News
- [x] Pictures
- [x] Stats
- [x] Forum
- [x] More info
- [x] Recommendations
- [ ] User updates
-
[x] Person
-
[x] Characters
-
[x] Season
-
[ ] Season Archive
-
[ ] Season Later
-
[x] Schedule
-
[x] Genre
- [x] anime
- [x] manga
- [x] genre
-
[x] Producer
-
[x] Magazine
-
[x] User
- [x] Profile
- [x] History
- [x] Friends
- [x] Anime list
- [x] all
- [x] watching
- [x] completed
- [x] on hold
- [x] dropped
- [x] plan to watch
- [x] Manga list
- [x] all
- [x] reading
- [x] completed
- [x] on hold
- [x] dropped
- [x] plan to read
-
[ ] Club
-
[ ] Meta
1.0.0 #
- Initial version, created by Stagehand
example/jikan_dart_example.dart
import 'package:jikan_dart/jikan_dart.dart';
main() async {
var jikanApi = JikanApi();
var top = await jikanApi.getTop(TopType.manga, page: 2);
print('result $top');
}
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies:
jikan_dart: ^0.9.0
2. Install it
You can install packages from the command line:
with pub:
$ pub get
with Flutter:
$ flutter pub get
Alternatively, your editor might support pub get
or flutter pub get
.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:jikan_dart/jikan_dart.dart';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
23
|
Health:
Code health derived from static analysis.
[more]
|
71
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
82
|
Overall:
Weighted score of the above.
[more]
|
50
|
We analyzed this package on Dec 5, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.12.21
Platforms
Detected platforms: Flutter, web, other
No platform restriction found in primary library
package:jikan_dart/jikan_dart.dart
.
Health suggestions
Fix lib/src/model/genre/genre.dart
. (-20.19 points)
Analysis of lib/src/model/genre/genre.dart
reported 45 hints, including:
line 2 col 25: Avoid const keyword.
line 3 col 28: Avoid const keyword.
line 4 col 23: Avoid const keyword.
line 5 col 25: Avoid const keyword.
line 6 col 27: Avoid const keyword.
Fix lib/src/model/serializers.dart
. (-9.54 points)
Analysis of lib/src/model/serializers.dart
reported 20 hints, including:
line 41 col 17: Avoid const keyword.
line 77 col 37: Avoid const keyword.
line 77 col 44: Avoid const keyword.
line 78 col 17: Unnecessary new keyword.
line 80 col 37: Avoid const keyword.
Fix lib/src/model/schedule/schedule.g.dart
. (-0.50 points)
Analysis of lib/src/model/schedule/schedule.g.dart
reported 1 hint:
line 226 col 9: Equality operator ==
invocation with references of unrelated types.
Fix lib/src/model/user/user_request_type.dart
. (-0.50 points)
Analysis of lib/src/model/user/user_request_type.dart
reported 1 hint:
line 85 col 1: Prefer using /// for doc comments.
Maintenance issues and suggestions
Support latest dependencies. (-10 points)
The version constraint in pubspec.yaml
does not support the latest published versions for 1 dependency (built_value
).
The package description is too short. (-8 points)
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
Dependencies
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0 <3.0.0 | ||
built_collection | ^4.0.0 | 4.3.0 | |
built_value | ^6.1.6 | 6.8.2 | 7.0.0 |
http | ^0.12.0 | 0.12.0+2 | |
Transitive dependencies | |||
analyzer | 0.38.5 | 0.39.1 | |
analyzer_plugin | 0.2.1 | ||
args | 1.5.2 | ||
async | 2.4.0 | ||
build | 1.2.2 | ||
build_config | 0.4.1+1 | ||
charcode | 1.1.2 | ||
checked_yaml | 1.0.2 | ||
collection | 1.14.12 | ||
convert | 2.1.1 | ||
crypto | 2.1.3 | ||
csslib | 0.16.1 | ||
dart_style | 1.3.3 | ||
fixnum | 0.10.11 | ||
front_end | 0.1.27 | 0.1.29 | |
glob | 1.2.0 | ||
html | 0.14.0+3 | ||
http_parser | 3.1.3 | ||
js | 0.6.1+1 | ||
json_annotation | 3.0.0 | ||
kernel | 0.3.27 | 0.3.29 | |
logging | 0.11.3+2 | ||
matcher | 0.12.6 | ||
meta | 1.1.8 | ||
node_interop | 1.0.3 | ||
node_io | 1.0.1+2 | ||
package_config | 1.1.0 | ||
path | 1.6.4 | ||
pedantic | 1.9.0 | ||
pub_semver | 1.4.2 | ||
pubspec_parse | 0.1.5 | ||
quiver | 2.1.2+1 | ||
source_gen | 0.9.4+6 | ||
source_span | 1.5.5 | ||
stack_trace | 1.9.3 | ||
string_scanner | 1.0.5 | ||
term_glyph | 1.1.0 | ||
typed_data | 1.1.6 | ||
watcher | 0.9.7+13 | ||
yaml | 2.2.0 | ||
Dev dependencies | |||
build_runner | ^1.1.2 | ||
built_value_generator | ^6.1.6 | 6.8.2 | 7.0.0 |
test | ^1.0.0 |